Like in any other text based program, linux terminals also support usage of arrow keys, backspace to navigate and edit text. But there are some shortcuts which can replace multiple use of arrow keys and simplify user experience. Following table lists some shortcuts.
Shortcut | Action |
---|---|
Ctrl+A | Jump to the beginning of the command line. |
Ctrl+E | Jump to the end of the command line. |
Ctrl+U | Clear from the cursor to the beginning of the command line. |
Ctrl+K | Clear from the cursor to the end of the command line. |
Ctrl+LeftArrow | Jump to the beginning of the previous word on the command line. |
Ctrl+RightArrow | Jump to the end of the next word on the command line. |
Ctrl+R | Search the history list of commands for a pattern. |
More such shortcuts can be found in the bash man page.