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?
~/.bash_aliases
than in~/.bashrc
. Though technically it won't make a difference, but for administrative purpose. – jobin May 27 '14 at 06:57