You can select everything written on the screen using Ctrl+A. In everyday typing applications, the Ctrl+A does the work of selecting “All”. You can tilt yourself back and forth in the command history using these two, the Ctrl+P and Ctrl+N commands. It will display the “next” command on the screen that you have passed before by using Ctrl+N. Ctrl+N will take you in the forward direction. Now you want to go forward, not in the backward direction. For instance, let us say you have gone through some previously written commands already. This Linux terminal shortcut does the exact opposite thing that you have already done with Ctrl+P. In some terminals, you can get this advantage with the Pg Up key from your keyboard. This shortcut helps you to bring back the commands that are lost from the screen after cleaning it. If you hit the two buttons repeatedly, then you can go back to your previous commands one by one. Pressing Ctrl alongside with P lets you see your previously written commands.
How to see your previously written commands? But you have wiped the whole screen already. But suddenly, you have to see a command that you had written before. You have cleared the screen for your handiness. It will wipe the screen and will give you a nice and clear terminal to work with. Just press the Ctrl and then L simultaneously. If you are a lazy guy, just like me, you can avoid writing so many characters. How to clean the screen? Writing “clear” and then hitting the ENTER lets you clear the screen in a twinkling of eyes.īut, to do this, you have to press 6 keys consecutively. Sometimes we write tons of commands, and the screen becomes really messy.
This is like a magic key you have embedded on your keyboard. What is going to happen? It will show all the possible command line syntax you can write with “sudo”. Let us say you have written “sudo” on the terminal and then hit the tab key. By hitting the tab at that moment, you can have the whole suggested command written on the screen without actually writing it. While writing any command, sometimes you will see a suggestion provided by the terminal with a lighter color. The tab is the most used terminal shortcut in any Linux distro. It seems magical, isn’t it? No mouse click, no tedious search. Using the Ctrl+Alt+T combination opens a whole new terminal for you. It kills your time and is monotonous as well. Searching for the terminal from the application menu is not something recommended. Or on any other screen, and suddenly you need to use the terminal. For No more idle talks! Let us jump into the main portion of today’s post. In other shells, maybe there are some differences in the shortcuts that you have to discover by yourself. In this post, I am going to familiarize you guys with Bash shortcuts assuming that your computer has Bash as the command processor. For Linux, the Bash is the most popular one. Stick to this post till the end to get a crystal clear concept about Linux terminal shortcuts. Just master the command line shortcuts you will have such a comfortable feel with the terminal that you have never felt before.