Keyboard shortcuts for working faster in the terminal and Bash shell.
| Ctrl+A | Move to beginning of line |
| Ctrl+E | Move to end of line |
| Option+Left | Move back one word (macOS Terminal) |
| Option+Right | Move forward one word (macOS Terminal) |
| Ctrl+B | Move back one character |
| Ctrl+F | Move forward one character |
| Ctrl+XX | Toggle between start and current position |
| Ctrl+U | Delete from cursor to line start |
| Ctrl+K | Delete from cursor to line end |
| Ctrl+W | Delete previous word |
| Option+D | Delete next word |
| Ctrl+H | Delete character before cursor |
| Ctrl+D | Delete character at cursor (or exit if empty) |
| Ctrl+Y | Paste (yank) last deleted text |
| Ctrl+T | Transpose two characters |
| Esc T | Transpose two words |
| Ctrl+R | Reverse search history |
| Ctrl+S | Forward search history |
| Ctrl+P | Previous command (same as Up) |
| Ctrl+N | Next command (same as Down) |
| Ctrl+G | Cancel search |
| !! | Repeat last command |
| !$ | Last argument of previous command |
| !* | All arguments of previous command |
| !abc | Run last command starting with "abc" |
| Option+. | Insert last argument (cycle through) |
| Ctrl+C | Kill current process (SIGINT) |
| Ctrl+Z | Suspend current process (SIGTSTP) |
| Ctrl+D | Send EOF / Close shell |
| Ctrl+L | Clear screen |
| Ctrl+S | Freeze terminal output |
| Ctrl+Q | Resume terminal output |
| fg | Resume suspended process in foreground |
| bg | Resume suspended process in background |
| Cmd+T | New tab (macOS Terminal) |
| Cmd+N | New window (macOS Terminal) |
| Cmd+W | Close tab (macOS Terminal) |
| Cmd+K | Clear scrollback (macOS Terminal) |
| Cmd++ | Increase font size |
| Cmd+- | Decrease font size |