show history
show history
To list the commands you have entered in the current EXEC session, use the show history command in EXEC mode.
show history
Syntax Description This command has no arguments or keywords.
Command Modes
Command History
EXEC
Release | Modification |
10.0 | This command was introduced. |
|
|
12.2(33)SRA | This command was integrated into Cisco IOS Release 12.2(33)SRA. |
|
|
Usage Guidelines The command history feature provides a record of EXEC commands you have entered. The number of commands that the history buffer will record is determined by the history size line configuration command or the terminal history size EXEC command.
Table 86 lists the keys and functions you can use to recall commands from the command history buffer.
Table 86 | History Keys | |
|
|
|
Key |
| Function |
|
| |
Recalls commands in the history buffer in a backward sequence, beginning | ||
|
| with the most recent command. Repeat the key sequence to recall |
|
| successively older commands. |
|
| |
Returns to more recent commands in the history buffer after recalling | ||
|
| commands with |
|
| successively more recent commands. |
|
|
|
1. The arrow keys function only with
Examples | The following is sample output from the show history command, which lists the commands the user has |
| entered in EXEC mode for this session: |
| Router# show history |
| help |
| where |
| show hosts |
| show history |
| Router# |
| Cisco IOS Configuration Fundamentals Command Reference |
| July 2008 |