Cisco Systems ME 3400 Switch User Manual


  Open as PDF
of 1086
 
2-6
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
OL-9639-06
Chapter 2 Using the Command-Line Interface
Using Editing Features
Using Editing Features
This section describes the editing features that can help you manipulate the command line. It contains
these sections:
Enabling and Disabling Editing Features, page 2-6 (optional)
Editing Commands through Keystrokes, page 2-6 (optional)
Editing Command Lines that Wrap, page 2-8 (optional)
Enabling and Disabling Editing Features
Although enhanced editing mode is automatically enabled, you can disable it, re-enable it, or configure
a specific line to have enhanced editing. These procedures are optional.
To globally disable enhanced editing mode, enter this command in line configuration mode:
Switch (config-line)# no editing
To re-enable the enhanced editing mode for the current terminal session, enter this command in
privileged EXEC mode:
Switch# terminal editing
To reconfigure a specific line to have enhanced editing mode, enter this command in line configuration
mode:
Switch(config-line)# editing
Editing Commands through Keystrokes
Table 2-5 shows the keystrokes that you need to edit command lines. These keystrokes are optional.
Ta ble 2-5 Editing Commands through Keystrokes
Capability Keystroke
1
Purpose
Move around the command line to
make changes or corrections.
Press Ctrl-B, or press the
left arrow key.
Move the cursor back one character.
Press Ctrl-F, or press the
right arrow key.
Move the cursor forward one character.
Press Ctrl-A. Move the cursor to the beginning of the command line.
Press Ctrl-E. Move the cursor to the end of the command line.
Press Esc B. Move the cursor back one word.
Press Esc F. Move the cursor forward one word.
Press Ctrl-T. Transpose the character to the left of the cursor with the
character located at the cursor.
Recall commands from the buffer and
paste them in the command line. The
switch provides a buffer with the last
ten items that you deleted.
Press Ctrl-Y. Recall the most recent entry in the buffer.