Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Showing results for 
Search instead for 
Did you mean: 

adding PATH

Go to solution
Regular Advisor

adding PATH

I am new to linux/unix environment. I have couple of softwares installed in
home/opt/SOFTWARE folder

I need to include the search path so that I don't need to go the above directory to start the application

i see PATH varialbe but I don't know how to modify to include the above path

Thanks in advance

Ivan Ferreira
Honored Contributor

Re: adding PATH

If you want to do it for your user only, edit the .bash_profile file, for all users, edit the /etc/profile.

Add a line like this:


Where /path/to/SOFTWARE is the full path to the directory you want to add, I don't know if your posted path is right, but if it is, then should be:

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Regular Advisor

Re: adding PATH

Hi Ivan,
Thanks for the reply.
My path is

so I edited the .bash_profile as follows

PATH = $PATH:/opt/mathematica/bin/
export PATH

however when I login to the system and type the name of the executables - math or mathematica or Mathematica it always gives "command not found"

I also give echo $PATH but it does not show the above changes

Regular Advisor

Re: adding PATH

I had a problem with a script line before the PATH variable. When I removed that line I was able to modify the PATH variable

Thanks for your help