Thursday, June 13, 2013

Alias in Linux to create short cut

To save time it is possible to create a short cut for Linux commands by  creating an alias. To do so: 
  1. open ~/.bashrc or /etc/bash.bashrc in any text editor 
  2. Add each commnad using this formula: 'alias <name>=<"command"> e.g. alias install ="sudo apt-get install" 
  3. Then save it and log out and log in again in to the system
  4. Enjoy :)