Command Line Shortcuts

press Enter – Run the command
press Up Arrow – Show the previous command
type exit – log out of current session.
type !! – repeats the last command.
Ctrl+C – halts the current command.
Ctrl+Z – stops the current command, resume with fg in the forground or bg in the background.
Ctrl+D – log out of current session, similar to exit.
Ctrl+W – erases one word in the current line.
Ctrl+R – Allows you to type a part of the command you’re looking for and finds it
Ctrl+Z – Stops the current command, resume with fg in the foreground or bg in the background
Ctrl+C – Halts the current command, cancel the current operation and/or start with a fresh new line.
Ctrl+L – Clear the screen
Ctrl+A – Return to the start of the command you’re typing
Ctrl+E – Go to the end of the command you’re typing
Ctrl+K – Cut everything after the cursor to a special clipboard
Ctrl+Y – Paste from the special clipboard that Ctrl + U and Ctrl + K save their data to
Ctrl+T – Swap the two characters before the cursor (you can actually use this to transport a character from the left to the right)

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s