< Home

History Commands

The CLI automatically saves the history commands input by the user. You can invoke and repeatedly run the saved history command at any time.

By default, the system saves 10 history commands at most for each user. The operations are as shown in Table 1.

Table 1 History commands

Action

Key or Command

Result

Display the history commands.

display history-command

Display the history commands entered by users.

Access the last history command.

Up cursor key or <Ctrl+P>

Display the last history command if there is an earlier history command. Otherwise, an alarm is generated.

Access the next history command.

Down cursor key or <Ctrl+N>

Display the next history command if there is a later history command. Otherwise, the command is cleared and an alarm is generated.

When you use the history commands, note the following:

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic