I was trying to setup a permanent alias. but ~/.bash_aliases file not found on my system. I have checked the bashrc file and it shows bash_aliases are enabled. I tried creating a new file in the same name in home directory and putting the aliases. But it also didn't work. Any solution to set a permanent alias?
Also i would like to know whether I can set an alias for shell that I created and it is residing in some other path. Thanks in advance.
bashrc_aliasesfile. I am looking for that solution here, and not the answer for how to set the alias. – Anandu M Das Dec 05 '14 at 09:57bash_aliasesare enabled"? How do you know the file isn't found? – Holloway Dec 05 '14 at 10:03bash_aliasesfile inalias name='command'format. And in order to tell the terminal to look at this file when I request an alias, two lines of codes (if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi) needs to be put inbashrc. In this way I know thatbash_aliasesis enabled. – Anandu M Das Dec 05 '14 at 10:08.bash_aliasesin your home directory? – Holloway Dec 05 '14 at 10:09