Search code examples
bashubuntu-14.04alias

Alias not working in Ubuntu 14.04


So I have added an alias for jumping to another directory like this

in my ./bashrc file , Looks like this

alias crmx="cd /var/www/crm/website-crm/"

Then i saved the file

but when I try to run

crmx 

it says

command not found

Also I tried to do alias to see all the command but my command is not listed

Any idea ?


Solution

  • The file is ~/.bashrc (starting with a dot).

    And you have to source it (reload) by doing source ~/.bashrc or just by closing and reopening your terminal.

    You can also type ps to check if your shell is bash (for example if it's zsh you have put your alias in the ~/.zshrc file)