If you’re like me, an average ‘Terminal window’ user in Ubuntu, then you too might agree to the fact that while entering some commonly used commands again and again (such as ‘mkdir’, ‘cd’, ‘sudo’ etc) is a bit of a pain in the as* :). These days, most computers users are touch typists, but if you are not, then the frustration can be even bigger.
So if you are looking for a solution, then you might be interested in this simple tool called ‘Terminal for human’. What it does is simple. It assigns one letter shortcuts to few commonly used built-in commands thus, whenever you want to use a certain command, you no longer have to type the whole command, and can just type its assigned letter shortcut instead.
Most of its shortcuts are based on single letters and they are easy to remember too. For example, you can press the letter ‘c’ for clearing the output on the Terminal and it will executes the ‘clear’ command. Press ‘l’ and it will list the content of the current folder. Press ‘f’ followed by the folder name and it will execute the ‘cd’ command and take you into that folder. If you press ‘b’, then you will be taken backward.
I frequently use the ‘sudo’ command (thanks ‘apt-get’!, LOL), and after installing ‘Terminal for human‘, you can just replace ‘sudo’ with the letter ‘s’ too. These are of course, some of its shortcuts to mention.
If interested, you can install it in Ubuntu 12.04 Precise Pangolin by using the below command. Currently, it does not have packages for other Ubuntu versions.
sudo apt-add-repository ppa:wyderka-t/terminalforhuman
sudo apt-get update
sudo apt-get install terminalforhuman
But before you can use it in the Terminal window in Ubuntu, you have to enable an option manually.
1. For that, open the Terminal window and from its menu go to: ‘Edit’ -> ‘Profile Preferences’.
2. Then click the ‘Title and Commands’ tab and put a check mark on the option called ‘Run command as a login shell’ as shown below.
Then close the ‘Profile Preferences’ window and the Terminal. Now re-open the Terminal and now you should be able to use the shortcuts that come with ‘Terminal for human’.
It also has this nifty feature that automatically puts your cursor in the middle of the Terminal window, if it is filled with text outputs, so you don’t have to use the ‘clear’ command for clearing things out a bit, before you can enter a new command.
For getting a list of all the available shortcuts please refer to its manual by using the below command.