Skip to content

Instantly share code, notes, and snippets.

@arnobk
Created November 22, 2023 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnobk/52068f0121cd4496e4cce04224a9c2a9 to your computer and use it in GitHub Desktop.
Save arnobk/52068f0121cd4496e4cce04224a9c2a9 to your computer and use it in GitHub Desktop.
Bash Terminal Shortcuts

Bash Terminal Shortcuts

Cursor Movements

  • Ctrl + A: Moves cursor to start of the line.
  • Ctrl + E: Moves cursor to end of the line.
  • Alt + F: Moves one word forward.
  • Alt + B: Moves one word back.

Deleting Text

  • Ctrl + W: Remove the word backwards starting from cursor position.
  • Alt + D: Delete a word starting from the current cursor position
  • Ctrl + U: Remove the line backwards starting from cursor position.
  • Ctrl + K: Remove the line forward starting from cursor position.

Misc

  • Ctrl + L: Clears the terminal screen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment