
`
history
GFK-2572
Chapter 2 Monitor Level Commands
2-9
2
history
Global Command
This command displays command history with a history number for each previously-entered
command. The
clear
parameter clears the command history.
“!<historyNumber>”
executes a command associated with the history number in the command
history.
up arrow (↑) or <ctrl>p
shows previous command in the command history.
down arrow (↓) or <ctrl>n
shows next command in command history. Only valid after
moving up through command history with the up arrow (↑) or <ctrl>-p.
history Command Formats
history [clear]
!<historyNumber>
[↑ | <Ctl>p]
[↓ | <Ctl>n]
Examples
Using the History Command to Display Previously Entered Commands
Screen Display
device-name> alias sh show
device-name> alias shcfg "show config"
device-name> history
1. alias sh show
2. alias shcfg "show config"
3. history
device-name>
Clearing Command History
Screen Display
device-name
> history clear
History Cleared
device-name> history
1. history
device-name>