DETAILED STEPS
Purpose
Command or Action
Recalls commands in the history buffer, beginning with the most recent command.
Repeat the key sequence to recall successively older commands.
Ctrl-P
or use the
up arrow
key
Step 1
Returns to more recent commands in the history buffer after recalling commands
with
Ctrl-P
or the up arrow key. Repeat the key sequence to recall successively
more recent commands.
Ctrl-N
or use the
down arrow
key
Step 2
Lists the last several commands that you just entered in privileged EXEC mode.
The number of commands that appear is controlled by the setting of the
terminal
show history
Example:
Switch#
show history
Step 3
history
global configuration command and the
history
line configuration
command.
Disabling the Command History Feature
The command history feature is automatically enabled. You can disable it for the current terminal session or
for the command line. This procedure is optional.
SUMMARY STEPS
1.
terminal no history
DETAILED STEPS
Purpose
Command or Action
Disables the feature during the current terminal session in
privileged EXEC mode.
terminal no history
Example:
Switch#
terminal no history
Step 1
Enabling and Disabling Editing Features
Although enhanced editing mode is automatically enabled, you can disable it and reenable it.
SUMMARY STEPS
1.
terminal editing
2.
terminal no editing
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
OL-29048-01
7
Using the Command-Line Interface
Enabling and Disabling Editing Features