Navigation

To see edit keys, type help edit:

hostname# help edit Available editing keystrokes

Delete current character.....................

Ctrl-d

Delete text up to cursor.....................

Ctrl-u

Delete from cursor to end of line............

Ctrl-k

Move to beginning of line....................

Ctrl-a

Move to end of line..........................

Ctrl-e

Get prior command from history...............

Ctrl-p

Get next command from history................

Ctrl-n

Move cursor left.............................

Ctrl-b

Move cursor right............................

Ctrl-f

Move back one word...........................

Esc-b

Move forward one word........................

Esc-f

Convert rest of word to uppercase............

Esc-c

Convert rest of word to lowercase............

Esc-l

Delete remainder of word.....................

Esc-d

Delete word up to cursor.....................

Ctrl-w

Transpose current and previous character.....

Ctrl-t

Enter command and return to root prompt......

Ctrl-z

Refresh input line...........................

Ctrl-l

Command Line Editing

In addition to the commands listed in the previous section, the following commands can be used to edit your command line entries:

Table 4–2: CLI Edit Commands

Key Combination

Edit Function

 

 

 

 

up arrow

Enters the last command in the command line

 

 

!! <cr>

Executes the last command

 

 

!<number>

Executes command number <number> in the history buffer. Use the

 

history command to view command numbers.

 

 

Command Aliases

The CLI allows you to create aliases for long or complex command line entries. An alias is a string that can represent any of the following:

a command

a command parameter

a command flag

a combination of command, parameters, and flags

X Family CLI Reference V 2.5.1

127