streda 10. júla 2013

Linux bash custom command alias

You can do it globally for all users by editing edit /etc/bashrc as sudo
or only for you by editing /home/username/.bashrc

This is easy example. I just need short command to "jump" to folder with web pages.

Open bashrc file and add new line

alias html='cd /home/grex/www/'

now reload bashrc profile with command . ~/.bashrc

and try it!