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_aliases
file. I am looking for that solution here, and not the answer for how to set the alias.bash_aliases
are enabled"? How do you know the file isn't found?bash_aliases
file 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_aliases
is enabled..bash_aliases
in your home directory?