show history




show history


Syntax Description:

This command has no arguments or keywords.

Command Description:


To list the commands you have entered in the current EXEC session, use the show history EXEC command.  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.  The table lists the keys and functions you can use to recall commands from the command history buffer.


Table of History Keys



Ctrl-P or Up Arrow1

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 Arrow1

Returns 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.


1The arrow keys function only with ANSI-compatible terminals.


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



show hosts

show history


           This command does not provide a high level of network security. If you use this command, you should also take additional network security measures.
Related Commands:

history size
terminal history size

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)