show history

Displays the history of commands executed on the device during the current session.

Syntax

show history [ number ]

Parameters

number
Specifies the number of commands to display. Values range from 1 through 1000.

Modes

Privileged EXEC mode

Usage Guidelines

If you enter this command without specifying a number, up to 1000 commands are displayed.

Examples

The following command displays the three last commands entered.

device# show history 3
12:45:23 -- show interface switchport
12:45:37 -- show interface stats brief
12:45:45 -- show arp vrf test