Terminal Keyboard Shortcuts

Terminal / Bash keyboard shortcut reference covering 40 bindings for Windows, Mac & Linux. Commonly searched bindings include Cancel, EOF / Logout, and Start of Line. 40 of 40 shortcuts are verified against official Terminal / Bash documentation, each with a linked source when available. Search by action name, filter by category, look up what a key combination does, print a cheat sheet, or practice with flashcards.

Official Terminal / Bash documentation

Terminal

ActionDescriptionWindowsMacVerifiedSource
Cancel Cancel current command Ctrl+C Cmd+C Windows, Linux Source
Suspend Suspend current process Ctrl+Z Cmd+Z Windows, Linux Source
EOF / Logout End of input or logout Ctrl+D Cmd+D Windows, Linux Source
Start of Line Move cursor to line start Ctrl+A Cmd+A Windows, Linux Source
End of Line Move cursor to line end Ctrl+E Cmd+E Windows, Linux Source
Kill to End Delete from cursor to end Ctrl+K Cmd+K Windows, Linux Source
Kill to Start Delete from cursor to start Ctrl+U Cmd+U Windows, Linux Source
Kill Word Back Delete word before cursor Ctrl+W Cmd+W Windows, Linux Source
Yank Paste killed text Ctrl+Y Cmd+Y Windows, Linux Source
Clear Screen Clear terminal display Ctrl+L Cmd+L Windows, Linux Source
Reverse Search Search command history Ctrl+R Cmd+R Windows, Linux Source
Cancel Search Cancel history search Ctrl+G Cmd+G Windows, Linux Source
Previous Command Previous history entry Ctrl+P Cmd+P Windows, Linux Source
Next Command Next history entry Ctrl+N Cmd+N Windows, Linux Source
Last Argument Insert last argument Alt+. Option+. Windows, Linux Source
Back Word Move back one word Alt+B Option+B Windows, Linux Source
Forward Word Move forward one word Alt+F Option+F Windows, Linux Source
Delete Word Forward Delete word after cursor Alt+D Option+D Windows, Linux Source
Autocomplete Tab completion Tab Tab Windows, macOS, Linux Source
History Up Previous command in history Up Up Windows, macOS, Linux Source
History Down Next command in history Down Down Windows, macOS, Linux Source
Repeat Last Repeat last command !! !! Windows, macOS, Linux Source
Last Argument Ref Use last argument of prev command !$ !$ Windows, macOS, Linux Source
Copy Copy in terminal Ctrl+Shift+C Cmd+Shift+C Windows, Linux Source
Paste Paste in terminal Ctrl+Shift+V Cmd+Shift+V Windows, Linux Source
Screen/tmux Detach Detach from session Ctrl+A then D Ctrl+A then D Windows, Linux Source
Screen New Window Create new screen window Ctrl+A then C Ctrl+A then C Windows, Linux Source
Screen Next Next screen window Ctrl+A then N Ctrl+A then N Windows, Linux Source
Screen Previous Previous screen window Ctrl+A then P Ctrl+A then P Windows, Linux Source
Swap Characters Transpose characters Ctrl+T Cmd+T Windows, Linux Source
Undo Edit Undo last edit Ctrl+_ Cmd+_ Windows, Linux Source
Insert Tab Insert literal tab Ctrl+V then Tab Ctrl+V then Tab Windows, Linux Source
Redraw Line Refresh current line Ctrl+R Cmd+R Windows, Linux Source
Word Delete Alt Delete word using readline Ctrl+W Cmd+W Windows, Linux Source
Exit Shell Exit current shell exit exit Windows, macOS, Linux Source
Clear History Clear bash history history+-c history+-c Windows, macOS, Linux Source
List History Show command history history history Windows, macOS, Linux Source
Run History Command Execute command by number !n !n Windows, macOS, Linux Source

Window

ActionDescriptionWindowsMacVerifiedSource
New Tab Open new terminal tab Ctrl+Shift+T Cmd+Shift+T Windows, Linux Source
New Window Open new terminal window Ctrl+Shift+N Cmd+Shift+N Windows, Linux Source

← All apps on Shortcut Atlas

Loading Shortcut Atlas…