Source: Bash Reference Manual, Chapter 8
Written for a Mac Keyboard. Some keys dependent on Terminal settings.
| Command | Description |
|---|---|
| ctrl-b | back one character |
| ctrl-f | forward one character |
| ctrl-a | move to start of line |
| ctrl-e | move to end of line |
| opt-b | move back one word |
| opt-f | move forward one word |
| Backspace | delete character to the left of the cursor |
| ctrl-d | delete character under the cursor |
| Del | delete character to the right of the cursor |
| ctrl-l | clear the screen and reprint line |
| opt-Del | cut from the cursor to the start of the current word (kill) |
| ctrl-w | cut from the cursor to the previous white space (kill) |
| ctrl-k | cut from the cursor to the end of the line (kill) |
| opt-d | cut from the cursor to the end of current word (kill) |
| ctrl-y | paste the most recent cut (yank) |
| opt-y | rotate cut buffer and paste new top item (yank) |
| ctrl-_ | undo last editing command |