Linux Shortcuts and Terminal Key Combinations

By | January 31, 2011

Most of the linux users and professionals use terminal for performing any task. I know it’s not tough to work on the terminal but, one should also agree the fact that it certainly consumes some time to work using linux terminal. Here are some linux terminal key combinations or shortcuts that can help you save time while you are on work.


Ctrl+A

Imagine that you are typing a long command on your linux machine and suddenly you have noticed that you have no permission to run a command. So, obviously you have to go to the very beginning of the line and add “sudo” to run the whole command. Now, you can use “CRTL+A” to get back to the starting of the line.

Ctrl+E

From the previous example CTRL+E should take you back to the end of the command.

Ctrl+C

To logout of the current shell session, you can use “CTRL+C”. This would take you to the new command line without actually executing the command you previously typed.

Ctrl+L

Many people like me love to clear the terminal before they do something on the terminal. You can quickly clear the terminal using CRTL+L shortcut.

Ctrl+R

CTRL+R shortcut allows you to search the command you have previously used and will allow you to edit the command based on your need.

Ctrl+P

This shortcut will allow you to browse your command history backwards starting from your latest command. Press CTRL+P to quickly access the previous command you have used.

Ctrl+Z

CTRL+Z simply suspend the programs and returns the terminal.

Ctrl+K

This shortcut will help you remove all the text that is available from the pointer to the right most side of the terminal.

Ctrl+U

Control+U removes the text that is available from the pointer to the left most side of the terminal.

ALT+D

To remove a single word at a time, you can use ALT+D. Make sure your cursor is right at the beginning of the word.

Shift+PageUp and Shift+PageDown helps you browse terminal buffer.

Tab

Tab is used for completing a Command or shows filename completion. Few linux machines produces audio bell when there are too many possibilities and ask you to proceed.

Tab Tab Shows file or command completion possibilities.

If you like this article, then please consider sharing it. Sharing really inspires us to do things much better!!

Leave a Reply

Your email address will not be published. Required fields are marked *