The display history-command command displays the historical commands saved on the device.
By default, the last 10 historical commands are displayed.
Usage Scenario
The display history-command command displays commands that were run recently and help you to search information.
To view historical command execution records of all users, including user information, command execution date and time, and command executed, run the display history-command all-users command.
Precautions
When you use a historical command, note the following:
Ctrl_P to replace the key.
 The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display history-command all-users
User    : huawei, VTY2, 10.134.146.150                                      
Time    : 2017-05-08 16:08:35                                                   
Command : diagnose                                                              
User    : huawei, VTY5, 10.179.117.219                                      
Time    : 2017-05-08 16:08:35                                                   
Command : display clock
<HUAWEI> display history-command
  display current-configuration configuration
  display bfd session all verbose
  display bfd statistics session all
  display vrrp
  display vrrp statistics
  display  alarm  history verbose
| Item | Description | 
|---|---|
| User | Information about the user who executes the command, including the user name, UI, login IP address. If no user name is specified upon login, the user name is displayed as **.  | 
| Time | Time when a command is executed.  | 
| Command | Command executed.  |