Skip to content

Instantly share code, notes, and snippets.

@yelinaung
Last active November 7, 2019 09:19
Show Gist options
  • Save yelinaung/849c78c40784c56e05f5a04dded9082d to your computer and use it in GitHub Desktop.
Save yelinaung/849c78c40784c56e05f5a04dded9082d to your computer and use it in GitHub Desktop.

Bash shortcuts

Command Description
Ctrl + a To the beginning of the line
Ctrl + e To the end of the line
Alt + b One word back
Alt + f One word forward
Ctrl + k Delete to the end of the line
Ctrl + u Delete to the beginning of the line
Alt + d Delete to the end of the word
Ctrl + w Delete to the beginning of the word
Ctrl + p Previous command or arrow up
Ctrl + n Next command or arrow down
Ctrl + r Search history (fzf is a good, 3rd party alternative)
Ctrl + u Remove line
Ctrl + l Clear screen
Ctrl + b Move back one character
Ctrl + f Move forward one character
Ctrl + d Delete current character
Ctrl + - Undo
Ctrl + y Paste the last cut

Others

  • z is a good util to jump around folders.
  • jq is a fast and flexible command line JSON processor.
  • httpie is a fancy cURL alternative.
  • ExplainShell is great website to explain how a command or chain of commands work.
  • The Art of Command Line
@xtrntr
Copy link

xtrntr commented Jul 1, 2018

Pawsome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment