Command-Line Interface (CLI)
197
The following example demonstrates the show history command and how to change the
history size, as well as how to verify it with the show terminal command. First, use the show
history command to see the last 20 commands that were entered on the router:
yourname#show history
en
sh history
show terminal
sh cdp neig
sh ver
sh flash
sh int fa0
sh history
sh int s0/0
sh int s0/1
Now use the show terminal command to verify the terminal history size:
yourname#show terminal
Line 0, Location: "", Type: ""
[output cut]just codesnippet
Modem type is unknown.
Session limit is not set.
Time since activation: 00:21:41
Editing is enabled.
History is enabled, history size is 20.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
T A B L E 4 . 3 Router Command History
Command Meaning
Ctrl+P or up arrow Shows last command entered
Ctrl+N or down arrow Shows previous commands entered
show history Shows last 10 commands entered by default
show terminal Shows terminal configurations and history buffer size
terminal history size Changes buffer size (max 256)
47020.book Page 197 Wednesday, January 2, 2008 4:31 PM
Comentarios a estos manuales