Minimum List of Useful Bash Shortcuts
Minimum List of Useful Bash Shortcuts
shortcuts
December 08, 2019 · 3 mins to read
I often end up googling “bash shortcuts” and every result lists a huge list of shortcuts available in bash,
some of them are overridden by other utils, like fzf or by your terminal itself, some of them are not that
helpful. I compiled the minimal list of shortcuts and commands which can increase your productivity in
bash.
Navigation
Move cursor back one word, will jump to the current word’s
Alt + b rst character or if already there to the previous word’s rst b ack.
character.
Move cursor forward one word, will jump to the next word’s
Alt + f f orward.
rst character.
Shortcut Description Memorization
Edit
Ctrl + x ,
Edit the current command in your $EDITOR .
Ctrl + e
Processes
Ctrl + z Move current process to background. Use fg to bring back. z Zzzz (sleep)
Enter , ~ ,
Exit stalled SSH session
.
History
All other shortcuts can be found in man bash . To understand the syntax read Readline Notation section
rst and then move on to Commands for Moving .
Another helpful cheatsheat with Bash shortcuts and features can be found at iptheweb/bash-shortcuts-
cheat-sheet.