Option | Description |
---|---|
history | Displays a numbered list of the last 100 previously entered commands. |
!! | Repeats the last command. |
!n | Repeats the nth command shown on the history list. |
Ctrl+P or up arrow | Recalls the previous command from the history list. This can be used multiple times to work backward through the last 10 commands. The recalled command can be entered as is, or edited using the editing options listed in this table. |
Ctrl+N or down arrow | Recalls the next command from the history list. This can be used multiple times to work forward through the last 10 commands. The recalled command can be entered as is, or edited using the editing options listed in this table. |
Ctrl+A | Moves the cursor to the beginning of command line. |
Ctrl+E | Moves the cursor to the end of the command line. |
Ctrl+B or left arrow key | Moves the cursor back one position to the left. |
Ctrl+F or right arrow key | Moves the cursor forward one position to the right. |
Backspace or Delete key | Erases one character to the left of the cursor position. |
Ctrl+D | Deletes one character at the cursor position. |
Ctrl+K | Kills (erases) all characters from the cursor position to the end of the command line. |
Ctrl+L | Redraws the screen. |
Ctrl+U | Clears the entire line. |
Other keys | Inserts new characters at the cursor position. |