Collection of bash tips from the internet. I did not create this.

SHORTCUTS

  • CTRL+A # move to beginning of line
  • CTRL+B # moves backward one character
  • CTRL+C # halts the current command
  • CTRL+D # deletes one character backward or logs out of current session, similar to exit
  • CTRL+E # moves to end of line
  • CTRL+F # moves forward one character
  • CTRL+G # aborts the current editing command and ring the terminal bell
  • CTRL+J # same as RETURN
  • CTRL+K # deletes (kill) forward to end of line
  • CTRL+L # clears screen and redisplay the line
  • CTRL+M # same as RETURN
  • CTRL+N # next line in command history
  • CTRL+O # same as RETURN, then displays next line in history file
  • CTRL+P # previous line in command history
  • CTRL+R # searches backward
  • CTRL+S # searches forward
  • CTRL+T # transposes two characters
  • CTRL+U # kills backward from point to the beginning of line
  • CTRL+V # makes the next character typed verbatim
  • CTRL+W # kills the word behind the cursor
  • CTRL+X # lists the possible filename completions of the current word
  • CTRL+Y # retrieves (yank) last item killed
  • CTRL+Z # stops the current command, resume with fg in the foreground or bg in the background
  • ALT+B # moves backward one word
  • ALT+D # deletes next word
  • ALT+F # moves forward one word
  • DELETE # deletes one character backward
  • !! # repeats the last command
  • exit # logs out of current session