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

 

 

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.

 

 

 

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

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

CF-680

July 2008

Page 4
Image 4
Cisco Systems 12000 series manual Show history, Key Function, Entered in Exec mode for this session, CF-680