Using the Command-Line Interface

Enabling and Disabling Editing Features

 

Command or Action

Purpose

Step 2

terminal no editing

Disables the enhanced editing mode for the current terminal session

 

 

in the privileged EXEC mode.

 

Example:

 

 

Switch# terminal no editing

 

Editing Commands through Keystrokes

The keystrokes help you to edit the command lines. These keystrokes are optional.

Note The arrow keys function only on ANSI-compatible terminals such as VT100s.

Table 3: Editing Commands

 

Editing Commands

Description

Ctrl-B or use the left arrow key

Moves the cursor back one character.

Ctrl-F or use the right arrow key

Moves the cursor forward one character.

Ctrl-A

Moves the cursor to the beginning of the command

 

line.

Ctrl-E

Moves the cursor to the end of the command line.

Esc B

Moves the cursor back one word.

Esc F

Moves the cursor forward one word.

Ctrl-T

Transposes the character to the left of the cursor with

 

the character located at the cursor.

Delete or Backspace key

Erases the character to the left of the cursor.

Ctrl-D

Deletes the character at the cursor.

Ctrl-K

Deletes all characters from the cursor to the end of

 

the command line.

Ctrl-U or Ctrl-X

Deletes all characters from the cursor to the beginning

 

of the command line.

Ctrl-W

Deletes the word to the left of the cursor.

 

Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX

8

OL-29034-01

Page 20
Image 20
Cisco Systems WSC2960X48TDL manual Editing Commands through Keystrokes