show history
CF-680
Cisco IOS Configuration Fundamentals Command Reference
July 2008
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 EXEC
Command History
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.
Tabl e 86 lists the keys and functions you can use to recall commands from the command history buffer.
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#
Release Modification
10.0 This command was introduced.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
Table86 History Keys
Key Function
Ctrl-P or Up Arrow1
1. The arrow keys function only with ANSI-compatible terminals.
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.
Ctrl-N or Down Arrow1Returns to more recent commands in the history buffer after recalling
commands with Ctrl-P or the Up Arrow. Repeat the key sequence to recall
successively more recent commands.