Skip to content
si:bash

Bash Shortcuts

Terminal

By EZ4Code Team

Line Editing

10
ShortcutDescriptionPlatform
Ctrl+AMove to start of lineall
Ctrl+EMove to end of lineall
Ctrl+BMove back one charall
Ctrl+FMove forward one charall
Alt+BMove back one wordall
Alt+FMove forward one wordall
Ctrl+WDelete word before cursorall
Ctrl+UDelete to start of lineall
Ctrl+KDelete to end of lineall
Ctrl+YPaste (yank) killed textall

History

7
ShortcutDescriptionPlatform
Ctrl+PPrevious commandall
Ctrl+NNext commandall
Ctrl+RReverse search historyall
Ctrl+SForward search historyall
Ctrl+OExecute & advanceall
!!Run last commandall
!$Last arg of last commandall

Job Control

7
ShortcutDescriptionPlatform
Ctrl+CInterrupt (SIGINT)all
Ctrl+ZSuspend (SIGTSTP)all
Ctrl+DSend EOF / exit shellall
Ctrl+\Quit (SIGQUIT)all
bgResume job in backgroundall
fgResume job in foregroundall
jobsList active jobsall

Redirection

7
ShortcutDescriptionPlatform
>Redirect stdout to fileall
>>Append stdout to fileall
2>Redirect stderrall
2>&1Redirect stderr to stdoutall
<Redirect stdin from fileall
|Pipe stdout to next commandall
teeTee output to file & stdoutall

Shortcuts

6
ShortcutDescriptionPlatform
Ctrl+LClear screenall
Ctrl+TSwap last two charsall
Ctrl+_Undoall
TabAutocompleteall
Alt+.Insert last argall
Ctrl+X Ctrl+EEdit command in editorall

More Shortcuts