For some reason I am successful in adding new directories to my $PATH
but when I run the commands in the terminal the $PATH
doesn't summon them.
I modified the $PATH
in the ~/.bashrc
file, and added the last directory
# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:**/home/aldin/mybin/fasta-35.4.12/bin**"
But when I run the command it says command not found
. However when I type the full path of the utility I'm able to run it.
Has anyone experienced this problem before? Do you know what I can do to fix this problem?
.bashrc
is the wrong file, you should changePATH
in.profile
. See Alternative to .bashrc. Nonetheless, changing.bashrc
should work when you launch applications from that terminal. Are you running a shell other than bash? Is your.bashrc
read? Tell us whatps $$
shows in a terminal. If you add the lineset -x
at the top of.bashrc
, what output do you see when you open a terminal?export PATH=$PATH:$HOME/aldin/mybin/fasta-35.4.12/bin
. I hope that some user confirm or refute this information.