Cisco Systems OL-6244-01 Switch User Manual


  Open as PDF
of 1438
 
1-8
Catalyst 6500 Series Switch Command Reference—Release 8.4
OL-6244-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Switch CLI
Using Command Aliases
Like regular commands, aliases are not case sensitive. However, unlike regular commands, some aliases
cannot be abbreviated. See Table 1-2 for a list of switch CLI aliases that cannot be abbreviated.
Using History Substitution
Commands that you enter during each terminal session are stored in a history buffer, which stores the
last 20 commands you entered during a terminal session. History substitution allows you to access these
commands without retyping them by using special abbreviated commands. (See Table 1-3.)
Table 1-2 Switch CLI Command Aliases
Alias Command
batch configure
di show
earl cam
exit quit
logout quit
Table 1-3 History Substitution Commands
Command Function
To repeat recent commands:
!! Repeat the most recent command.
!-nn Repeat the nnth most recent command.
!n Repeat command n.
!aaa Repeat the command beginning with string aaa.
!?aaa Repeat the command containing the string aaa.
To modify and repeat the most recent command:
^aaa^bbb Replace string aaa with string bbb in the most recent
command.
To add a string to the end of a previous command and repeat it:
!!aaa Add string aaa to the end of the most recent command.
!n aaa Add string aaa to the end of command n.
!aaa bbb Add string bbb to the end of the command beginning with
string aaa.
!?aaa bbb Add string bbb to the end of the command containing string
aaa.