Key combination | Operation |
---|---|
Left arrow or Ctrl+b | Moves one character to the left. When a command extends beyond a single line, you can press left arrow or Ctrl+b repeatedly to scroll toward the beginning of the line, or you can press Ctrl+a to go directly to the beginning of the line. |
Right arrow or Ctrl-f | Moves one character to the right. When a command extends beyond a single line, you can press right arrow or Ctrl+f repeatedly to scroll toward the end of the line, or you can press Ctrl+e to go directly to the end of the line. |
Esc, b | Moves back one word |
Esc, f | Moves forward one word |
Ctrl+e | Moves to end of the line |
Ctrl+a | Moves to the beginning of the line |
Ctrl+u | Deletes the line |
Ctrl+w | Deletes from the cursor to the previous whitespace |
Alt+d | Deletes the current word |
Ctrl+k | Deletes from the cursor to the end of line |
Ctrl+y | Pastes text previously deleted with Ctrl+k, Alt+d, Ctrl+w, or Ctrl+u at the cursor |
Ctrl+t | Transposes the current character with the previous character |
Ctrl+c | Ignores the current line and redisplays the command prompt |
Ctrl+z | Ends configuration mode and returns to exec mode |
Ctrl+l | Clears the screen |
Up Arrow or Ctrl+p | Scroll backward through command history |
Down Arrow or Ctrl+n | Scroll forward through command history |