1-8
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter1 Command-Line Interfaces
Switch CLI
Using Command Aliases
Like regular commands, aliases are not case sensitive. However, unlike regular commands, some aliases
cannot be abbreviated. See Tabl e 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 a ccess these
commands without retyping them by using special abbreviated c om mands. ( See Ta ble 1- 3.)
Table1-2 Switch CLI Command Aliases
Alias Command
batch configure
di show
earl cam
exit quit
logout quit
Table1-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.