LinuxShortcuts

60 Bash Shortcuts for Linux

List of Bash Shortcuts

Learn Bash Shortcuts for Linux

Editing Shortcuts

Action Bash Shortcuts
Tab Ctrl + I
New Line Ctrl + J
Enter Ctrl + M
Paste Last Thing to be Cut Ctrl + Y
Undo Ctrl + _
Upper the case Every Character Form Cursor Alt + U
Lower the case Every Character Form Cursor Alt + L
Capitalize Character Under Cursor and Move to End of the Word Alt + C
Cancel Changes and Put Back the Line Alt + R
Delete Character Under Cursor Ctrl + D
Delete Character From Left Ctrl + H
Delete Word before Cursor Alt + Delete
Delete Word after Cursor Alt + D
Clear Screen Ctrl + L
Escape Ctrl + [
Cut Word Before Cursor to Clipboard Ctrl + W
Cut Line After Cursor to Clipboard Ctrl + K
Cut Line Before Cursor to Clipboard Ctrl + U
Swap Current Word with Previous Alt + T
Swap Last Character before Cursor Ctrl + T
Swap Last Two Words Before Cursor Esc + T

Read More: 20 Zendesk Shortcuts You Should know

Emacs and Vi Mode Shortcuts

Action Bash Shortcut keys
Set Emacs Mode $set -o emacs
Set Vi Mode $set -o vi

Navigation Shortcuts

Action Bash Shortcut keys
Go to Beginning of Line Home
Go to End of Line End
Forward one character Ctrl + F
Backward one character Ctrl + B
Previous Command Ctrl + P
Next Command Ctrl + N
Back one word Alt + B
Forward one word Alt + F

Read More: 170 MS Access Shortcut keys for Windows

Control Character Shortcuts

Action Bash Shortcut keys
^@ Ctrl + 2
^Escape Ctrl + 3
^\ Ctrl + 4
^ Ctrl + 5
^^ Ctrl + 6
^_Undo Ctrl + 7
^? Backward Delete Character Ctrl + 8
Display Sequence for entering Key Ctrl + V

History Shortcuts

Action Bash Shortcut keys
Recall Last Command Ctrl + R
Previous Command in History Ctrl + P
Next Command in History Ctrl + N
Go back to Next Most Recent Command Ctrl + S
Escape from History Searching Mode Ctrl + O
Repeat Last Command Ctrl + G
Run Last Command Starting with abc !!
Print the last Command starting with abc !abc
Last Argument of Previous Command !abc:p
Last Argument of Previous Command !$
All Arguments of Previous Command Alt + .
Run Previous Command, replacing abc with def ^abc^def

Read More: 10 Pandora Shortcuts You Should Know

Process Controls Shortcuts

Action Bash Shortcut keys
Interrupt or Kill Whatever you are running Ctrl + C
Clear Screen Ctrl + L
Stop Output to Screen Ctrl + S
Allow Output to Screen Ctrl + Q
Send an EOF Marker Ctrl + D
Send the signal SIGTSTP to Current Task Ctrl + Z

Download Bash Shortcuts PDF

Download Bash Shortcuts PDF

READ NEXT:

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button