I put a program cow under /opt and then I edited .bashrc by addingexport PATH=$PATH:/opt so now $PATH has /optbut when I want to run cow directly, I get$ cowThe program 'cow' is currently not installed. You can install it by typing:sudo apt-get install fl-cowI still need to run /opt/cowwhat is wrong?
why doesn't PATH work when I add the env in it and want to run a program under the env?
path;bashrc