2-8
Catalyst 2960 Switch SoftwareConfiguration Guide
78-16881-01
Chapter2 Us ing the Command-Line Interfac e
Using Editing Features
Editing Command Lines that Wrap
You can use a wraparound feature for commands that extend beyond a single line on the screen. When
the cursor reaches the right margin, the command line shifts ten spaces to the left. You cannot see the
first ten characters of the line, but you can scroll back and check the syntax at the beginning of the
command. The keystroke actions are optional.
To scroll back to the beginning of the command entry, press Ctrl-B or the left arrow key repeatedly. You
can also press Ctrl-A to immediately move to the beginning of the line.
Note The arrow keys function only on ANSI-compatible terminals such as VT100s.
Press Ctrl-D. Delete the character at the cursor.
Press Ctrl-K. Delete all characters from the cursor to the end of the
command line.
Press Ctrl-U or Ctrl-X. Delete all characters from the cursor to the beginning of
the command line.
Press Ctrl-W. Delete the word to the left of the cursor.
Press Esc D. Delete from the cursor to the end of the word.
Capitalize or lowercase words or
capitalize a set of letters.
Press Esc C. Capitalize at the cursor.
Press Esc L. Change the word at the cursor to lowercase.
Press Esc U. Capitalize letters from the cursor to the end of the word.
Designate a particular keystroke as
an executable command, perhaps as a
shortcut.
Press Ctrl-V or Esc Q.
Scroll down a line or screen on
displays that are longer than the
terminal screen can display.
Note The More prompt is used for
any output that has more
lines than can be displayed
on the terminal screen,
including show command
output. You can use the
Return and Space bar
keystrokes whenever you see
the More prompt.
Press the Return key. Scroll down one line.
Press the Space bar. Scroll down one screen.
Redisplay the current command line
if the switch suddenly sends a
message to your screen.
Press Ctrl-L or Ctrl-R. Redisplay the current command line.
1. The arrow keys function only on ANSI-compatible terminals such as VT100s.
Table2-5 Editing Commands through Keystrokes (continued)
Capability Keystroke1Purpose