Negating the Effect of Commands
For many configuration commands you can enter the prefix keyword “
no
” to cancel
the effect of a command or reset the configuration to the default value. For example,
the
logging
command will log system messages to a host server. To disable
logging, specify the
no logging
command. This guide describes the negation effect
for all applicable commands.
Using Command History
The CLI maintains a history of commands that have been entered. You can scroll
back through the history of commands by pressing the up arrow key. Any command
displayed in the history list can be executed again, or first modified and then
executed.
Using the
show history
command displays a longer list of recently executed
commands.
21-5
The command “
show interfaces ?
” will display the following information:
Console#show interfaces ?
counters Information of interfaces counters
protocol-vlan Protocol-vlan information
status Information of interfaces status
switchport Information of interfaces switchport
Console#
Partial Keyword Lookup
If you terminate a partial keyword with a question mark, alternatives that match the
initial letters are provided. (Remember not to leave a space between the command
and question mark.) For example “
s?
” shows all the keywords starting with “s.”
Console#show s?
sntp
s
panning
-
t
ree ssh
s
tartup
-
c
onfig
snmp
system
Console#sh s
Entering Commands
21