< Previous | Contents | Next >
Cursor Movement
The following table lists the keys used to move the cursor:
Command Line Editing
Table 8-1: Cursor Movement Commands
Key Action
Key Action
Ctrl-a Move cursor to the beginning of the line.
Ctrl-e Move cursor to the end of the line.
Ctrl-f Move cursor forward one character; same as the right arrow key. Ctrl-b Move cursor backward one character; same as the left arrow key. Alt-f Move cursor forward one word.
Alt-b Move cursor backward one word.
Ctrl-l Clear the screen and move the cursor to the top left corner. The
clear command does the same thing.