or   Register or Register today to make and share your own cheat sheets! (Why Join?)

Cheatography Login

Join Us!

Not a Cheatographer? Register here!

Social Media

You can login to or register with Cheatography using your Facebook or Twitter account!

Why Join Cheatography?

Make and share cheat sheets!
Join a great community of Cheatographers and add your very own contributions.

Save your favourites!
Quick access to your most loved cheat sheets.

Fewer ads!
Members see no ads on the site.

Coming soon ...
Requests, ratings and more!

Why Join Cheatography?

Make and share cheat sheets!
Join a great community of Cheatographers and add your very own contributions.

Save your favourites!
Quick access to your most loved cheat sheets.

Fewer ads!
Members see no ads on the site.

Coming soon ...
Requests, ratings and more!

Bash command line shortcuts Cheat Sheet by clyde.stiller

1 Comment   |   Add a Comment   |   PDF Download   |   Find:

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
!blah run the most recent command that starts with ‘blah’ (e.g. !ls)
!blah:p print out the command that !blah would run
!* the previous command except for the last word
!n Execute nth command in history
!$ Last argument of last command
!^ First argument of last command
^abc 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
Ctrl+t 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

Favourited by 7 Members:

mishin gamiclea Provaguest adrienne dezos vintagecandy1 dttk

Comments

mishin mishin, 11:08 10 Oct 12

thanks, amazing sheet!

Add a Comment

Comment:

Contents

Column Content Comments Author Updated
- Bash command line shortcuts Cheat Sheet clyde.stiller 15 May 12
1 Bash Editing Shortcuts 0 clyde.stiller 15 May 12
2 Bash Bang (!) Commands 0 clyde.stiller 15 May 12
Command Recall Shortcuts 0 clyde.stiller 15 May 12
3 Bash Editing Shortcuts 2 0 clyde.stiller 15 May 12