How to Use the CLI to Configure Features
Configuring the Command History
The software provides a history or record of commands that you have entered. The command history feature
is particularly useful for recalling long or complex commands or entries, including access lists. You can
customize this feature to suit your needs.
Changing the Command History Buffer Size
By default, the switch records ten command lines in its history buffer. You can alter this number for a current
terminal session or for all sessions on a particular line. This procedure is optional.
SUMMARY STEPS
1.
terminal history
[
size number-of-lines
]
DETAILED STEPS
Purpose
Command or Action
Changes the number of command lines that the switch records during
the current terminal session in privileged EXEC mode. You can
configure the size from 0 to 256.
terminal history
[
size number-of-lines
]
Example:
Switch#
terminal history size 200
Step 1
Recalling Commands
To recall commands from the history buffer, perform one of the actions listed in this table. These actions are
optional.
The arrow keys function only on ANSI-compatible terminals such as VT100s.
Note
SUMMARY STEPS
1.
Ctrl-P
or use the
up arrow
key
2.
Ctrl-N
or use the
down arrow
key
3.
show history
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
6
OL-29048-01
Using the Command-Line Interface
How to Use the CLI to Configure Features