Most useful BASH shortcuts

29 Mar

ctrl-r : search through your history
ctrl-a/ctrl-e : go to start/end of line
ctrl-w/alt- : delete previous word
ctrl-t : transpose/swap previous two characters
alt-t : transpose/swap previous two words
ctrl-y : previous delete (like paste)
!$ : “!$” means the last argument of previous command
!^ : “!^” means the first argument of previous command

$   : show all system variables

screen : command to de-couple running program from terminal

good vim tips:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: