A concise and efficient list of keyboard shortcuts for the Bash shell to help you navigate, edit, and control your terminal like a pro.


⌨️ Bash Keyboard Shortcuts

ShortcutAction
Ctrl + AMove cursor to the beginning of the line
Ctrl + EMove cursor to the end of the line
Ctrl + UCut (delete) everything from cursor to beginning
Ctrl + KCut (delete) everything from cursor to end
Ctrl + YPaste last cut text (yank)
Ctrl + WCut the word before the cursor
Ctrl + LClear the screen (same as clear)
Ctrl + CCancel the current command
Ctrl + DLogout of shell / end terminal session (EOF)
Ctrl + ZSuspend the current foreground process
Ctrl + RReverse search through command history
Ctrl + PPrevious command (same as ↑ arrow)
Ctrl + NNext command (same as ↓ arrow)
Alt + BMove cursor one word backward
Alt + FMove cursor one word forward
Alt + DDelete word after the cursor
Ctrl + TSwap the last two characters before cursor
Esc + TSwap the last two words before cursor
TabAuto-complete file or directory name
Tab TabShow all possible completions