There are many commands that we use very frequently. Some of these commands are lengthy so it takes time to write these commands again and again. In ubuntu we can create shortcut for these commands which is called alias .To create aliases in ubuntu follow these steps:
1. Create a text file in your home directory
2. Now to add alias follow this syntax and put this into .bash_aliases file:
1. Create a text file in your home directory
- " gedit ~/.bash_aliases "
2. Now to add alias follow this syntax and put this into .bash_aliases file:
- " alias Short_command='Original_long_command' "
These are the few tips related to alias
- To check current aliases list: alias
- To check an existing alias: alias ALIAS_NAME
- To remove an existing alias: unalias ALIAS_NAME