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
| Shortcut | Action |
|---|---|
Ctrl + A | Move cursor to the beginning of the line |
Ctrl + E | Move cursor to the end of the line |
Ctrl + U | Cut (delete) everything from cursor to beginning |
Ctrl + K | Cut (delete) everything from cursor to end |
Ctrl + Y | Paste last cut text (yank) |
Ctrl + W | Cut the word before the cursor |
Ctrl + L | Clear the screen (same as clear) |
Ctrl + C | Cancel the current command |
Ctrl + D | Logout of shell / end terminal session (EOF) |
Ctrl + Z | Suspend the current foreground process |
Ctrl + R | Reverse search through command history |
Ctrl + P | Previous command (same as ↑ arrow) |
Ctrl + N | Next command (same as ↓ arrow) |
Alt + B | Move cursor one word backward |
Alt + F | Move cursor one word forward |
Alt + D | Delete word after the cursor |
Ctrl + T | Swap the last two characters before cursor |
Esc + T | Swap the last two words before cursor |
Tab | Auto-complete file or directory name |
Tab Tab | Show all possible completions |