Bash
Terminal / CLI
Line Navigation
▼
| CTRL+A | Move cursor to beginning of line | Linux |
| CTRL+E | Move cursor to end of line | Linux |
| ALT+F | Move forward one word | Linux |
| ALT+B | Move backward one word | Linux |
| CTRL+F | Move forward one character | Linux |
| CTRL+B | Move backward one character | Linux |
Editing
▼
| CTRL+K | Delete from cursor to end of line | Linux |
| CTRL+U | Delete from cursor to beginning of line | Linux |
| CTRL+W | Delete word before cursor | Linux |
| ALT+D | Delete word after cursor | Linux |
| CTRL+Y | Paste (yank) last deleted text | Linux |
| CTRL+T | Swap two characters before cursor | Linux |
Process Control
▼
| CTRL+C | Interrupt current process | Linux |
| CTRL+Z | Suspend current process | Linux |
| CTRL+D | EOF / exit current shell | Linux |
| bg | Resume suspended job in background | Linux |
| fg | Bring background job to foreground | Linux |
History
▼
| CTRL+R | Reverse search command history | Linux |
| Up / Down Arrow | Navigate command history | Linux |
| !! | Repeat last command | Linux |
| !<n> | Run command number n from history | Linux |
| CTRL+G | Cancel history search | Linux |
| CTRL+P | Previous command (same as Up Arrow) | Linux |
| CTRL+N | Next command (same as Down Arrow) | Linux |
Screen & Signals
▼
| CTRL+L | Clear screen | Linux |
| CTRL+S | Pause terminal output (XOFF) | Linux |
| CTRL+Q | Resume terminal output (XON) | Linux |
| CTRL+_ | Undo last edit in line | Linux |