Back to 30 Seconds Of Code

Bash Shortcuts Cheat Sheet

content/snippets/articles/s/terminal-shortcuts-cheatsheet.md

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