Skip to content

Instantly share code, notes, and snippets.

@rothgar
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rothgar/46ed01ac3205b8a4fdba to your computer and use it in GitHub Desktop.
Save rothgar/46ed01ac3205b8a4fdba to your computer and use it in GitHub Desktop.
Helpful bash/emacs keyboard shortcuts
Shortcut Action
Ctrl + a Move cursor to beginning of line
Ctrl + e Move cursor to end of line
Ctrl + u Delete characters on line before cursor
Ctrl + k Delete characters on line after cursor
Ctrl + w Delete word in front of cursor
Alt + d Delete word after cursor
Alt + f Move cursor forward one word
Alt + b Move cursor back one word
Ctrl + r Search history
Ctrl + g Escape search history
Ctrl + l Clear screen
Ctrl + p Cycle through previous commands
Ctrl + n Cycle through next commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment