Skip to content

Instantly share code, notes, and snippets.

@bcfurtado
Last active June 17, 2018 08:52
Show Gist options
  • Save bcfurtado/503a2b5cb5128a12615635a0817dbfeb to your computer and use it in GitHub Desktop.
Save bcfurtado/503a2b5cb5128a12615635a0817dbfeb to your computer and use it in GitHub Desktop.

Bash/ZSH Keyboard Shortcuts

Shortcuts Command
Tab Auto complete
^a Beginning of line
^e End of line
^f Forward one character
^b Back one character
^h Delete one character (backw­ards)
%f Forward one word
%b Back one word
^w Delete one word (backw­ards)
^u Clear to beginning of line
^k Clear to end of line
^y Paste from Kill Ring
^t Swap cursor with previous character
%t Swap cursor with previous word
^p Previous line in history
^n Next line in history
^r Search backwards in history
^l Clear screen
^o Execute command but keep line
^z Suspend process
fg restore process
bg continue process in background
^c Kill current process
^d Exit shell
  • ^ - Hold Control while pressing key
  • % - Hold meta (alt, or command on mac)

Source: https://www.cheatography.com/davidsouther/cheat-sheets/bash-zsh-shourtcuts/

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