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.
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.
From the previous example CTRL+E should take you back to the end of the command.
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.
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 shortcut allows you to search the command you have previously used and will allow you to edit the command based on your need.
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 simply suspend the programs and returns the terminal.
This shortcut will help you remove all the text that is available from the pointer to the right most side of the terminal.
Control+U removes the text that is available from the pointer to the left most side of the terminal.
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 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!!