Common Software

Howto set bash alias

This tutorial will show you how to make a command even shorter using alias.

Firstly you will have to open the file in your home folder named .bashrc.

Once you open .bashrc you can insert the following line:
alias lah=’ls -lah’
Save the file and quit.

This will make the command lah available for you. In this case lah is doing ls -lah.
Of course you can put any command you need between ” and also you can name it whatever you need before the equal sign.

Leave a Reply