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

Recommended snippets & collections

  • Cheatsheets

    Snippet collection

    A collection of cheatsheets to bookmark and come back to whenever you need to look up anything.

  • DNS Record Basics

    Webdev, Article

    DNS records may not be a thing you work too often with. Regardless, some basic knowledge can go a long way.

  • Familiarize yourself with the most common HTTP status codes with this handy cheatsheet.

  • Use the HTML autocomplete attribute to create more secure and accessible password fields.