Terminal Keyboard Shortcuts 19 shortcuts · Windows & macOS · Last updated Nov 2026
The gap between a beginner and a power user at the command line is almost entirely keyboard shortcuts. This cheat sheet covers readline shortcuts shared by bash and zsh, plus the app-level controls for Windows Terminal and macOS Terminal.
Cursor Movement5
| Action | Windows | macOS |
|---|---|---|
| Jump to start / end of line | CtrlAorCtrlE | CtrlAorCtrlE |
| Jump back / forward one word | AltBorAltF | OptionBorOptionF |
| Delete the word before cursor | CtrlW | CtrlW |
| Delete from cursor to line start | CtrlU | CtrlU |
| Delete from cursor to line end | CtrlK | CtrlK |
Editing & Control5
| Action | Windows | macOS |
|---|---|---|
| Autocomplete command or path | Tab | Tab |
| Clear the screen | CtrlL | CtrlL |
| Cancel running command | CtrlC | CtrlC |
| Suspend running command (resume with fg) | CtrlZ | CtrlZ |
| Exit the shell session | CtrlD | CtrlD |
History3
| Action | Windows | macOS |
|---|---|---|
| Search command history (reverse search) | CtrlR | CtrlR |
| Previous / next command in history | CtrlPorCtrlN | CtrlPorCtrlN |
| Insert last argument of previous command | Alt. | Option. |
Terminal App Controls6
| Action | Windows | macOS |
|---|---|---|
| Copy / paste | CtrlShiftCorCtrlShiftV | CmdCorCmdV |
| New tab | CtrlShiftT | CmdT |
| Close tab | CtrlShiftW | CmdW |
| Next / previous tab | CtrlTaborCtrlShiftTab | CmdShift]orCmdShift[ |
| Search in terminal scrollback | CtrlShiftF | CmdF |
| Open command palette | CtrlShiftP | CmdShiftP |