| Shortcuts | Command |
|---|---|
| Tab | Auto complete |
| ^a | Beginning of line |
| ^e | End of line |
| ^f | Forward one character |
| ^b | Back one character |
| ^h | Delete one character (backwards) |
| %f | Forward one word |
| %b | Back one word |
| ^w | Delete one word (backwards) |
| ^u | Clear to beginning of line |
| ^k | Clear to end of line |
| ^y | Paste from Kill Ring |
| ^t | Swap cursor with previous character |
| %t | Swap cursor with previous word |
| ^p | Previous line in history |
| ^n | Next line in history |
| ^r | Search backwards in history |
| ^l | Clear screen |
| ^o | Execute command but keep line |
| ^z | Suspend process |
| fg | restore process |
| bg | continue process in background |
| ^c | Kill current process |
| ^d | Exit shell |
- ^ - Hold Control while pressing key
- % - Hold meta (alt, or command on mac)
Source: https://www.cheatography.com/davidsouther/cheat-sheets/bash-zsh-shourtcuts/