Bash Shortcuts Cheat Sheet

Angelos Chalaris · Apr 19, 2021 ·

Webdev, Bash, Cheatsheet

  • Ctrl + C Terminate the command
  • Ctrl + Z Suspend the command
  • Ctrl + A Move to the start of the line
  • Ctrl + E Move to the end of the line
  • Ctrl + F Move forward one character
  • Ctrl + B Move backward one character
  • Ctrl + U Delete from the cursor to the start of the line
  • Ctrl + K Delete from the cursor to the end of the line
  • Ctrl + W Delete from the cursor to the start of the word
  • Ctrl + D Delete the character under the cursor
  • Ctrl + H Delete the character before the cursor
  • Ctrl + T Swap the character under the cursor with the previous one
  • Ctrl + L Clear the screen

Image credit: Tracy Adams on Unsplash

Recommended snippets & collections