Bash Shortcuts
5 categories ยท 37 shortcuts
01
Line Editing
10 shortcuts- Move to start of lineCtrl+A
- Move to end of lineCtrl+E
- Move back one charCtrl+B
- Move forward one charCtrl+F
- Move back one wordAlt+B
- Move forward one wordAlt+F
- Delete word before cursorCtrl+W
- Delete to start of lineCtrl+U
- Delete to end of lineCtrl+K
- Paste (yank) killed textCtrl+Y
02
History
7 shortcuts- Previous commandCtrl+P
- Next commandCtrl+N
- Reverse search historyCtrl+R
- Forward search historyCtrl+S
- Execute & advanceCtrl+O
- Run last command!!
- Last arg of last command!$
03
Job Control
7 shortcuts- Interrupt (SIGINT)Ctrl+C
- Suspend (SIGTSTP)Ctrl+Z
- Send EOF / exit shellCtrl+D
- Quit (SIGQUIT)Ctrl+\
- Resume job in backgroundbg
- Resume job in foregroundfg
- List active jobsjobs
04
Redirection
7 shortcuts- Redirect stdout to file>
- Append stdout to file>>
- Redirect stderr2>
- Redirect stderr to stdout2>&1
- Redirect stdin from file<
- Pipe stdout to next command|
- Tee output to file & stdouttee
05
Shortcuts
6 shortcuts- Clear screenCtrl+L
- Swap last two charsCtrl+T
- UndoCtrl+_
- AutocompleteTab
- Insert last argAlt+.
- Edit command in editorCtrl+XCtrl+E