0% found this document useful (0 votes)
123 views1 page

59 Shortcuts For Bash (Linux)

This document lists 59 keyboard shortcuts for Bash (Linux) including shortcuts for navigation, editing, process controls, history navigation, and more. Some examples include Ctrl-A to go to the beginning of the line, Ctrl-C to interrupt a running process, Ctrl-R to search the command history, and !! to repeat the last command.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
123 views1 page

59 Shortcuts For Bash (Linux)

This document lists 59 keyboard shortcuts for Bash (Linux) including shortcuts for navigation, editing, process controls, history navigation, and more. Some examples include Ctrl-A to go to the beginning of the line, Ctrl-C to interrupt a running process, Ctrl-R to search the command history, and !! to repeat the last command.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

59 Shortcuts for Bash (Linux)

Navigation Alt+. Last Argument of Previous Command

Home/Ctrl+A Go to Beginning of Line !* All Arguments of Previous Command

Ctrl+E/End Go to End of Line ^abc^def Run Previous Command,replacing abc with def

Ctrl+F Forward one character


Process Controls
Ctrl+B Backward ine character
Ctrl+C Interrupt/Kill Whatever you are running
Ctrl+XX Toggle between start of line and cursor current
position Ctrl+L Clear Screen
Ctrl+P/Up Arrow Previous Command Ctrl+S Stop Output to Screen
Ctrl+N/Down Next Arrow Ctrl+Q Allow Output to Screen
Arrow
Ctrl+D Send an EOF Marker
Alt+B Back one word
Ctrl+Z Send the signal SIGTSTP to Current Task
Alt+F Forward one word
Emacs Mode/Vi Mode
Editing
$set -o vi Set Vi Mode
Ctrl+L Clear Screen
$set -o emacs Set Emacs Mode
Ctrl+D Delete Character Under Cursor
Ctrl+H Delete Character From Left
Alt+Del Delete Word before Cursor
Alt+D Delete Word After Cursor
Ctrl+W Cut Word Before Cursor to Clipboard
Ctrl+K Cut Line After Cursor to Clipboard
Ctrl+U Cut Line Before Cursor to Clipboard
Alt+T Swap Current Word with Previous
Ctrl+T Swap Last Character before Cursor
Esc+T Swap Last Two Words Before Cursor
Ctrl+Y Paste Last Thing to be Cut
Ctrl+_ Undo
Alt+U Upper Capitalize Every Character form Cursor
Alt+L Lower The Case Every Character Form Cursor
Alt+C Capitalize Character Under Cursor and Move to End
of the Word
Alt+R Cancel Changes and Put Back the Line
Ctrl+I Tab
Ctrl+J NewLine
Ctrl+M Enter
[Ctrl]+[[] Escape

Control Character
Ctrl+2 ^@
Ctrl+3 ^[Escape
Ctrl+4 ^\
Ctrl+5 ^]
Ctrl+6 ^^
Ctrl+7 ^_Undo
Ctrl+8 ^? Backward Delete Char
Ctrl+V Display Sequence for Enter Key

History
Ctrl+R Recall Last Command
Ctrl+P Previous Command in History
Ctrl+N Next Command in History
Ctrl+S Go back to Next Most Recent Command
Ctrl+O Execute Command found via Ctrl+R/Ctrl+S
Ctrl+G Escape from History Searching Mode
!! Repeat Last Command
!abc Run Last Commnd Starting with abc
!abc:p Print last Command starting with abc
!$ Last Argument of Previous Command

https://shortcutworld.com/Bash/linux/Bash_Shortcuts

You might also like