Chapter 5 Using the Command-Line Interface

Using Editing Features

To reconfigure a specific line to have enhanced editing mode, enter this command in line configuration mode:

Router(config-line)# editing

Editing Commands through Keystrokes

Table 5-5shows the keystrokes that you need to edit command lines. These keystrokes are optional.

Table 5-5

Editing Commands through Keystrokes

 

 

 

 

 

 

 

 

 

 

 

Capability

 

Keystroke1

Purpose

 

 

Move around the command line to

Press Ctrl-B, or press the

Move the cursor back one character.

 

 

make changes or corrections.

left arrow key.

 

 

 

 

 

 

 

 

 

 

 

 

 

Press Ctrl-F, or press the

Move the cursor forward one character.

 

 

 

 

right arrow key.

 

 

 

 

 

 

 

 

 

 

 

 

 

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

Press Ctrl-Y.

Recall the most recent entry in the buffer.

 

 

paste them in the command line. The

 

 

 

 

 

 

router provides a buffer with the last

 

 

 

 

 

 

ten items that you deleted.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Press Esc Y.

Recall the next buffer entry.

 

 

 

 

 

The buffer contains only the last 10 items that you have

 

 

 

 

 

deleted or cut. If you press Esc Y more than ten times, you

 

 

 

 

 

cycle to the first buffer entry.

 

 

 

 

 

 

 

Delete entries if you make a mistake

Press the Delete or

Erase the character to the left of the cursor.

 

 

or change your mind.

Backspace key.

 

 

 

 

 

 

 

 

 

 

 

 

 

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 lower the case or

Press Esc C.

Capitalize at the cursor.

 

 

capitalize a set of letters.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

 

 

 

 

 

 

 

 

 

 

 

 

Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OL-23826-09

 

 

 

 

5-7

 

 

 

 

 

 

 

Page 107
Image 107
Cisco Systems A9014CFD Editing Commands through Keystrokes, Capability Keystroke1 Purpose, Press Ctrl-Y, Backspace key