Hotkeys and shortcuts for Bash (Linux)

(Total 59)

Home / Ctrl + A
Navigation
Go to Beginning of Line
Ctrl + E / End
Navigation
Go to End of Line
Ctrl + F
Navigation
Forward one character
Ctrl + B
Navigation
Backward ine character
Ctrl + XX
Navigation
Toggle between start of line and cursor current position
Ctrl + P / Up Arrow
Navigation
Previous Command
Ctrl + N / Down Arrow
Navigation
Next Arrow
Alt + B
Navigation
Back one word
Alt + F
Navigation
Forward one word
Ctrl + L
Editing
Clear Screen
Ctrl + D
Editing
Delete Character Under Cursor
Ctrl + H
Editing
Delete Character From Left
Alt + Del
Editing
Delete Word before Cursor
Alt + D
Editing
Delete Word After Cursor
Ctrl + W
Editing
Cut Word Before Cursor to Clipboard
Ctrl + K
Editing
Cut Line After Cursor to Clipboard
Ctrl + U
Editing
Cut Line Before Cursor to Clipboard
Alt + T
Editing
Swap Current Word with Previous
Ctrl + T
Editing
Swap Last Character before Cursor
Esc + T
Editing
Swap Last Two Words Before Cursor
Ctrl + Y
Editing
Paste Last Thing to be Cut
Ctrl + _
Editing
Undo
Alt + U
Editing
Upper Capitalize Every Character form Cursor
Alt + L
Editing
Lower The Case Every Character Form Cursor
Alt + C
Editing
Capitalize Character Under Cursor and Move to End of the Word
Alt + R
Editing
Cancel Changes and Put Back the Line
Ctrl + I
Editing
Tab
Ctrl + J
Editing
NewLine
Ctrl + M
Editing
Enter
Ctrl + [
Editing
Escape
Ctrl + 2
Control Character
^@
Ctrl + 3
Control Character
^Escape
Ctrl + 4
Control Character
^\
Ctrl + 5
Control Character
^
Ctrl + 6
Control Character
^^
Ctrl + 7
Control Character
^_Undo
Ctrl + 8
Control Character
^? Backward Delete Char
Ctrl + V
Control Character
Display Sequence for Enter Key
Ctrl + R
History
Recall Last Command
Ctrl + P
History
Previous Command in History
Ctrl + N
History
Next Command in History
Ctrl + S
History
Go back to Next Most Recent Command
Ctrl + O
History
Execute Command found via Ctrl+R/Ctrl+S
Ctrl + G
History
Escape from History Searching Mode
!!
History
Repeat Last Command
!abc
History
Run Last Commnd Starting with abc
!abc:p
History
Print last Command starting with abc
!$
History
Last Argument of Previous Command
Alt + .
History
Last Argument of Previous Command
!*
History
All Arguments of Previous Command
^abc^def
History
Run Previous Command,replacing abc with def
Ctrl + C
Process Controls
Interrupt/Kill Whatever you are running
Ctrl + L
Process Controls
Clear Screen
Ctrl + S
Process Controls
Stop Output to Screen
Ctrl + Q
Process Controls
Allow Output to Screen
Ctrl + D
Process Controls
Send an EOF Marker
Ctrl + Z
Process Controls
Send the signal SIGTSTP to Current Task
$set -o vi
Emacs Mode/Vi Mode
Set Vi Mode
$set -o emacs
Emacs Mode/Vi Mode
Set Emacs Mode