Parameter | Description | Value |
---|---|---|
all-users | Displays information about the successfully matched commands that are executed by all users. If all-users is not specified, successfully matched historical commands executed by the current user are displayed. |
- |
display history-command: 0: Visit level
display history-command all-users: 3: Management level
Usage Scenario
The terminal automatically saves the history commands entered by the user, that is, records any keyboard entry of the user with Enter as the unit.
By default, the display history-command command displays a maximum of 10 historical commands. If the number of historical commands is less than 10, the display history-command command output displays all of them. Run history-command max-size command to set the size of the historical command buffer.
Precautions
Commands run by users are automatically saved on the terminal. Any input that ends with Enter is saved as a historical command.
Commands are saved in the same format as those users entered. If an entered command is incomplete, the saved command is also incomplete.
If a command is run several times, only the latest one is saved. If the command is run in different formats, they all saved as different commands.
You can check historical commands using the following methods:
To check a previous historical command, press the Up arrow key or Ctrl+P.
To check a next historical command, press the Down arrow key or Ctrl+N.
To check the previous historical commands on a Windows 9X HyperTerminal, press Ctrl+P. The Up arrow key does not take effect.