Bash / Zsh line-editing keys. On a Mac, ⌥ shortcuts need “Use Option as Meta key” (Terminal → Settings → Profiles → Keyboard) or “Esc+” for Left Option in iTerm2. On Windows they work in Windows Terminal, Git Bash and WSL.

39 shortcuts

Navigation

ShortcutAction
⌃+AMove to start of line
⌃+EMove to end of line
⌥+BMove back one word
⌥+FMove forward one word
⌃+BMove back one character
⌃+FMove forward one character
⌃+Xthen⌃+XToggle between start of line and cursor
⌥+ClickMove cursor to the clicked position (Terminal.app, iTerm2)
HomeMove to start of line
EndMove to end of line

Editing

ShortcutAction
⌃+UCut from cursor to start of line
⌃+KCut from cursor to end of line
⌃+WCut word before cursor
⌥+DCut word after cursor
⌃+YPaste last cut text
⌃+TSwap current and previous character
⌥+TSwap current and previous word
⌃+_Undo last edit
⌃+HDelete character before cursor (backspace)
⌃+DDelete character under cursor
⌥+DeleteDelete word before cursor

History

ShortcutAction
↑Previous command
↓Next command
⌃+PPrevious command (same as ↑)
⌃+NNext command (same as ↓)
⌃+RReverse search command history
⌃+GCancel history search
⌃+ORun found command and fetch the next one
!!Repeat last command
!$Last argument of previous command
!*All arguments of previous command
!abcRun last command starting with "abc"
historyShow command history

Process Control

ShortcutAction
⌃+CInterrupt (stop) the current process
⌃+ZSuspend current process (resume with fg)
⌃+DExit shell / send EOF (on an empty line)
⌃+LClear screen (keep current line)
⌃+SPause output (freeze terminal)
⌃+QResume output (unfreeze)
Ad Slot — Mid Content (Responsive In-Article)
💡

What Is This?

  • Reference for terminal and CLI keyboard shortcuts
  • Covers Bash/Zsh line editing and history navigation
  • Includes tmux and screen session shortcuts
  • Essential shortcuts for job control and navigation
  • Boost command-line speed and efficiency
🛠️

How to Use

  1. Browse terminal shortcuts by category
  2. Search for specific actions or key combinations
  3. Review shortcuts for your specific shell — Bash, Zsh
  4. Practice in your terminal to build muscle memory
  5. Reference tmux and screen shortcuts for session management
🎯

Use Cases

  • Speeding up command-line editing and navigation
  • Navigating command history more efficiently
  • Managing terminal sessions with tmux and screen
  • Learning CLI shortcuts as a new developer
  • Reducing typing with line editing shortcuts
Ad Slot — Bottom (300×250 Rectangle)