Useful Terminal Shortcuts

This mini-post contains some key shortcuts to help with terminal navigation.

  • Ctrl + a: Go to the beginning of the line

  • Ctrl + e: Go to the end of the line

  • Ctrl + XX: Go to the beginning of the line, and pressing Ctrl + XX again takes you back where you were.

  • Ctrl + u: Delete current line

  • Ctrl + _: Undo previous key stroke

  • Alt + f / Escape + F: Move forward, one-word

  • Alt + b / Escape + B: Move backwards, one-word

  • Alt + d: Delete all characters after the cursor

  • Alt + u: Up-case all characters after the cursor

  • Alt + t: Swap current word with the previous word