Helpful Terminal keyboard shortcuts

  • Go to beginning of the line: Ctrl+A
  • Go to end of the line: Ctrl+E
  • Toggle between the start of line and current cursor position: Ctrl + XX
  • Remove characters from the current position to the beginning: Ctrl+U
  • Remove characters from the current position to the end: Ctrl+K
  • Remove characters from the current position to the beginning of the word: Ctrl+W
  • Restore the deleted characters: Ctrl+Y