How to add a alias permanently in Linux

H

How Can We Help?

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

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me