Technical Documentation

CLI Keyboard Shortcuts

In the CLI, you can use keyboard sequences to move around and edit a command line. You can also use keyboard sequences to scroll through a list of recently executed commands.

Table 15 on page 23 lists some of the CLI keyboard sequences.

Table 1: CLI Keyboard Shortcuts

Keyboard sequence

Action

Ctrl+b

Move the cursor back one character.

Esc+b or Alt+b

Move the cursor back one word.

Ctrl+f

Move the cursor forward one character.

Esc+f or Alt+f

Move the cursor forward one word.

Ctrl+a

Move the cursor to the beginning of the command line.

Ctrl+e

Move the cursor to the end of the command line.

Ctrl+h, Delete, or Backspace

Delete the character before the cursor.

Ctrl+d

Delete the character at the cursor.

Ctrl+k

Delete the all characters from the cursor to the end of the command line.

Ctrl+u or Ctrl+x

Delete the all characters from the command line.

Ctrl+w, Esc+Backspace, or Alt+Backspace

Delete the word before the cursor.

Esc+d or Alt+d

Delete the word after the cursor.

Ctrl+y

Insert the most recently deleted text at the cursor.

Ctrl+l

Redraw the current line.

Ctrl+p

Scroll backward through the list of recently executed commands.

Ctrl+n

Scroll forward through the list of recently executed commands.

Ctrl+r

Search the CLI history incrementally in reverse order for lines matching the search string.

Esc+/ or Alt+/

Search the CLI history for words for which the current word is a prefix.

Esc-1 through Esc-9 or Alt-1 through Alt-9

Specify the number of times to execute a keyboard sequence.


Published: 2010-01-25