Show Menu

Bash command line shortcuts Cheat Sheet by

Bash command line shortcuts
bash     command     line     editing     bang

Bash Editing Shortcuts

Ctrl + k
delete from cursor to the end of the command line
Ctrl + y
paste word or text that was cut using one of the deletion shortcuts
Ctrl + xx
move between start of command line and current cursor position
Alt + b
move backward one word
Alt + f
move forward one word
Alt + d
delete to end of word starting at cursor
Alt + c
capitalize to end of word starting at cursor
Alt + u
make uppercase from cursor to end of word

Bash Bang (!) Commands

run last command
run the most recent command that starts with ‘blah’ (e.g. !ls)
print out the command that !blah would run
the previous command except for the last word
Execute nth command in history
Last argument of last command
First argument of last command
Replace first occurance of abc with xyz in last command and execute it

Command Recall Shortcuts

Ctrl + g
escape from history searching mode
Alt + .
use the last word of the previous command

Bash Editing Shortcuts 2

Alt-Ctrl-] x
moves the cursor backwards to the previous occurance of x
Alt-] x
moves the cursor forward to the next occurance of x
swap character under cursor with the previous one
Alt + t
swap current word with previous
Alt + l
make lowercase from cursor to end of word

Download the Bash command line shortcuts Cheat Sheet

1 Page

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

Like this cheat sheet? Check out our sponsors! is a collection of tools to make your writing better. More readabile content means higher conversion rates and better reader engagement. Measure website and document readability, measure keyword density and more!

Click Here To Get Started!



mishin mishin, 11:08 10 Oct 12

thanks, amazing sheet!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Bash Keyboard Shortcuts
          bash Shortcuts Cheat Sheet

          More Cheat Sheets by clyde.stiller