In the next tutorial I will teach you how to use them alias to create our own custom orders to use from the terminal.
Although I do not recommend it, this is very useful for the most used commands in ours Linux distro based on Debian, In this case Ubuntu 12.10.
The question of not recommending the use of tools like alias, Is that despite its great usefulness, it can be counterproductive especially for users who are just starting out with it Linux and its terminal, since although it is very useful and friendly to use it custom ordersIt can make us forget the real commands to use.
How to use aliases to create your own commands
alias already comes by default installed on ours Ubuntu, So to use it we only have to edit the .bashrc file that is in the Personal Folder in a hidden way.
The pattern to follow to create our own custom commands will be as follows:
alias custom command= »original command»
The parts in italics are the ones we will have to change for ours custom order and the command to replace.
We will open the file .bashrc with the following command:
Now we will add the lines with ours custom orders, At the end of the file, as shown in the following screenshot:
At the beginning we will put:
# Start my orders
And we will finish ours custom orders closing with this line:
# End of my orders
We will save the changes in the archive .bashrc and we will activate them with the following command: ç
Now for update the repository list, As we have created the relevant shortcut, we just need to put the terminal update:
As I tell you it is a very useful tool for create our own commands and thus simplify the use of the terminal, although it should not be abused so as not to forget the true commands.
Learn more – How to rename files en masse in Linux