Skip to content

Instantly share code, notes, and snippets.

@shime
Created September 2, 2013 07:24
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 shime/6410049 to your computer and use it in GitHub Desktop.
Save shime/6410049 to your computer and use it in GitHub Desktop.
bash keyboard shortcuts

Bash keyboard shortcuts

Characters

  • move back one character: Ctrl + b
  • move forward one character: Ctrl + f
  • delete current character: Ctrl + d
  • delete previous character: backspace

Words

  • move back one word: Alt + b
  • move forward one word: Alt + f
  • delete the word before the cursor: Ctrl + w
  • delete the word after the cursor: Alt + d

Lines

  • go to the beginning of the current line: Ctrl + a
  • go to the end of the current line: Ctrl + e
  • clear the line before the cursor: Ctrl + u (zsh clears the entire line)
  • clear the line after the cursor: Ctrl + k

Search

  • forward incremental: Ctrl + s
  • backward incremental: Ctrl + r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment