Skip to content

Instantly share code, notes, and snippets.

@kashifulhaque
Created February 13, 2024 18:29
Show Gist options
  • Save kashifulhaque/434341aad7d0e22396fcab582d3b3779 to your computer and use it in GitHub Desktop.
Save kashifulhaque/434341aad7d0e22396fcab582d3b3779 to your computer and use it in GitHub Desktop.
Bash hotkeys
  • Ctrl + X kill active process
  • Ctrl + D exit active shell
  • Ctrl + L clear screen
  • Ctrl + Z put current process in background (fg to bring it back to foregorund)
  • Ctrl + A to go to front of a line
  • Ctrl + E to go the end of a line
  • Ctrl + F to go forward one character (right arrow)
  • Ctrl + B to go backward one character (left arrow)
  • Alt + F to go forward one word (vim w motion)
  • Alt + B to go backward one word (vim b motion)
  • !! run previous command
  • !<number> Run the <number> command in history
  • Ctrl + X, Ctrl + E to open current line in $EDITOR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment