LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Do you add to the path line or make a new path in /etc/profile? (https://www.linuxquestions.org/questions/linux-newbie-8/do-you-add-to-the-path-line-or-make-a-new-path-in-etc-profile-510117/)

M$ISBS 12-13-2006 01:31 PM

Do you add to the path line or make a new path in /etc/profile?
 
I think I need to add java to my path. Do I need to add to the PATH line in /etc/profile or do I make a new PATH line.

Thank You.

pixellany 12-13-2006 01:46 PM

either one, I suspect. PATH gets set/modified in various places including ~/.profile

Syntax to change it:
export PATH="$PATH:<newpathname>"

matthewg42 12-13-2006 02:14 PM

You should read the FILES section of the bash manual page to understand which file is best. If you want all users on the system to be able to use it at any time, probably /etc/profile is the place.


All times are GMT -5. The time now is 09:09 PM.