Viewing history commands
You can use arrow keys to access history commands in Windows 200x and Windows XP Terminal or
Telnet. In Windows 9x HyperTerminal, the arrow keys are invalid, and you must use Ctrl+P and Ctrl+N
instead.
To view command history, use one of the following methods:
Task
Display all commands in the command history
buffer.
Display the previous history command.
Display the next history command.
Setting the command history buffer size for user interfaces
Step
1.
Enter system view.
2.
Enter user interface view.
3.
Set the maximum number of
commands that can be saved
in the command history
buffer.
Controlling the CLI output
This section describes the CLI output control features that help you identify the desired output.
Pausing between screens of output
The system automatically pauses after displaying a screen if the output is too long to fit on one screen. By
default, up to 24 lines can be displayed on a screen. To change the screen length, use the screen-length
screen-length command (see Fundamentals Command Reference). To control output, use keys in
Table 5 Keys for controlling output
Keys
Space
Enter
Ctrl+C
<PageUp>
Command
display history-command [ | { begin | exclude | include }
regular-expression ]
Up arrow key or Ctrl+P
Down arrow key or Ctrl+N
Command
system-view
user-interface { first-num1
[ last-num1 ] | { aux | console |
vty } first-num2 [ last-num2 ] }
history-command max-size
size-value
Function
Displays the next screen.
Displays the next line.
Stops the display and cancels the command execution.
Displays the previous page.
9
Remarks
N/A
N/A
Optional.
By default, the command history
buffer can save up to 10
commands.
Table
5.