Displaying And Executing History Commands - H3C S5120-SI Series Configuration Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

Key
Left arrow key or Ctrl+B
Right arrow key or Ctrl+F
Tab

Displaying and Executing History Commands

The CLI automatically saves the commands recently used in the history command buffer. You can
access commands in the history command buffer and execute them again.
Table 1-5 Access history commands
To do...
Display history commands
Access the previous history
command
Access the next history
command
You may use arrow keys to access history commands in Windows 200X and XP Terminal or Telnet.
However, the up and down arrow keys are invalid in Windows 9X HyperTerminal, because they are
defined differently. You can press Ctrl+P or Ctrl+N instead.
Note that:
The commands saved in the history command buffer are in the same format in which you typed the
commands. If you typed an incomplete command, the command saved in the history command
buffer is also an incomplete one.
If you execute the same command repeatedly, the device saves only the earliest record. However,
if you execute the same command in different formats, the system saves them as different
commands. For example, if you execute the display cu command repeatedly, the system saves
only one command in the history command buffer. If you execute the command in the format of
display cu and display current-configuration respectively, the system saves them as two
commands.
By default, the CLI can save up to ten commands for each user. You can use the
history-command max-size command to set the capacity of the history command buffer for the
The cursor moves one character space to the left.
The cursor moves one character space to the right.
If you press Tab after entering part of a keyword, the system automatically
completes the keyword:
If finding a unique match, the system substitutes the complete keyword
for the incomplete one and displays it in the next line.
If there is more than one match, you can press Tab repeatedly to display
in cycles all the keywords starting with the character string that you typed.
If there is no match, the system does not modify the incomplete keyword
and displays it again in the next line.
Use the key/command...
display history-command
Up arrow key or Ctrl+P
Down arrow key or Ctrl+N
1-16
Function
Result
Displays valid history commands you
used
Displays the previous history command, if
any
Displays the next history command, if any

Advertisement

Chapters

Table of Contents
loading

Table of Contents