Ctrl-A
|
Moves the
cursor to the beginning of the line.
|
Ctrl-B
|
Moves the
cursor one character to the left. When you enter a command that extends beyond
a single line, you can press the
Left Arrow or
Ctrl-B keys
repeatedly to scroll back toward the system prompt and verify the beginning of
the command entry, or you can press the
Ctrl-A key
combination.
|
Ctrl-C
|
Cancels the
command and returns to the command prompt.
|
Ctrl-D
|
Deletes the
character at the cursor.
|
Ctrl-E
|
Moves the
cursor to the end of the line.
|
Ctrl-F
|
Moves the
cursor one character to the right.
|
Ctrl-G
|
Exits to the
previous command mode without removing the command string.
|
Ctrl-K
|
Deletes all
characters from the cursor to the end of the command line.
|
Ctrl-L
|
Redisplays the
current command line.
|
Ctrl-N
|
Displays the
next command in the command history.
|
Ctrl-O
|
Clears the
terminal screen.
|
Ctrl-P
|
Displays the
previous command in the command history.
|
Ctrl-R
|
Redisplays the
current command line.
|
Ctrl-T
|
Transposes the
character under the cursor with the character located to the right of the
cursor. The cursor is then moved to the right one character.
|
Ctrl-U
|
Deletes all
characters from the cursor to the beginning of the command line.
|
Ctrl-V
|
Removes any
special meaning for the following keystroke. For example, press
Ctrl-V before entering a question mark (?) in a
regular expression.
|
Ctrl-W
|
Deletes the
word to the left of the cursor.
|
Ctrl-X, H
|
Lists the
history of commands you have entered.
When using
this key combination, press and release the
Ctrl and
X keys together before pressing
H.
|
Ctrl-Y
|
Recalls the
most recent entry in the buffer (press keys simultaneously).
|
Ctrl-Z
|
Ends a
configuration session, and returns you to EXEC mode.
When used at
the end of a command line in which a valid command has been typed, the
resulting configuration is first added to the running configuration file.
|
Up arrow key
|
Displays the
previous command in the command history.
|
Down arrow
key
|
Displays the
next command in the command history.
|
Right arrow
key
Left arrow
key
|
Moves your
cursor through the command string, either forward or backward, allowing you to
edit the current command.
|
?
|
Displays a
list of available commands.
|
Tab
|
Completes
the word for you after you enter the first characters of the word and then
press the
Tab key. All options that match are presented.
Use tabs to
complete the following items:
-
Command
names
-
Scheme
names in the file system
-
Server
names in the file system
-
Filenames in the file system
Example:
switch(config)# xm<Tab>
switch(config)# xml<Tab>
switch(config)# xml server
|
Example:
switch(config)# c<Tab>
callhome class-map clock
cdp cli control-plane
switch(config)# cl<Tab>
class-map cli clock
switch(config)# cla<Tab>
switch(config)# class-map
|
Example:
switch# cd bootflash:<Tab>
bootflash:///
bootflash://sup-1/
bootflash://sup-active/
bootflash://sup-local/
bootflash://module-27/
bootflash://module-28/
|
Example:
switch# cd bootflash://mo<Tab>
bootflash://module-27/ bootflash://module-28/
switch# cd bootflash://module-2
Note
|
You
cannot access remote machines using the
cd command. If you are on slot 27 and enter the
cd
bootflash://module-28 command, the following message appears:
"Changing directory to a non-local server is not allowed."
|
|