beautypg.com

Saving commands in the history buffer, Command line error information – H3C Technologies H3C SecPath F1000-E User Manual

Page 221

background image

7

Action Function

Press Ctrl+E

Moves the cursor to the end of the current line.

Press PageUp

Displays the previous page.

Press PageDown

Displays the next page.

Saving Commands in the History Buffer

The CLI automatically saves the commands that have been used lately to the history buffer. You can know

the operations that have been executed successfully, invoke and repeatedly execute them as needed. By

default, the CLI can save up to 10 commands for each user. To set the capacity of the history buffer for
the current user interface, use the history-command max-size command. For more information
about the history-command max-size command, see User Interface Commands in the System

Volume. The following table lists the operations that you can perform. In addition:

The commands saved in the history buffer are in the same format as the commands you input. If you

input an incomplete command, the command saved in the history buffer is also an incomplete
command.

If you repeatedly execute the same command, the device saves only the earliest command.
However, if you execute the same command in different formats, the system considers them as
different commands. For example, if you repeatedly execute the display cu command, the system
saves only one command in the history buffer. If you execute the command in the format of display
cu
and display current-configuration respectively, the system saves them as two commands.

Follow these steps to access history commands:

To do…

Use the key/command…

Result

View the history commands

display history-command

Displays the commands that you
have entered

Access the previous history
command

Up-arrow key or Ctrl+P

Displays the previous history
command, if any.

Access the next history command

Down-arrow key or Ctrl+N

Displays the next history
command, if any.

NOTE:

You may use arrow keys to access history commands in Windows 200X and XP Terminal or Telnet.
However, the up-arrow and down-arrow keys are invalid in Windows 9X HyperTerminal, because they

are defined in a different way. You can press Ctrl+P or Ctrl+N instead.

Command Line Error Information

The commands are executed only if they have no syntax error. Otherwise, error information is reported.

Table 8

lists some common errors.