Ubuntu alias not applied in bashrc
I am under Ubuntu 12.04 LTS.
I have added such line to ~/.bashrc
alias myconf="sudo nano /opt/nginx/conf/sites-available/efiling"
I tried with single quotes too:
alias myconf='sudo nano /opt/nginx/conf/sites-available/efiling'
Then I logged out and logged in again.
test@STORK:~$ myconf
myconf: command not found
But after test@STORK:~$ source ~/.bashrc
it works.
Can Anyone help me?
I think it should be
alias myconf='sudo nano /opt/nginx/conf/sites-available/efiling'
with single-quotes instead of double-quotes.
You can also use
$ source ~/.bashrc
to load bash.rc
without closing the terminal/logging out.