Select Page

How to add a alias permanently in Linux

Edit /etc/bashrc using

vim /etc/bashrc

add your alias to the file, for example if ll should be the alias for ls -l then add

alias ll="ls -l"

to /etc/bashrc and save the file.


For changes to take immediate effect execute the following command:

. ~/.bashrc

Last Updated On April 07, 2018

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.