LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing path environment variable (http://www.linuxquestions.org/questions/linux-newbie-8/changing-path-environment-variable-347079/)

iNET_boss 07-26-2005 05:43 PM

changing path environment variable
 
i'm running redhat9, 2.4.20-8 with bashshell; i'm trying to permanently change my path environment variable but it's not taking. i've used:

PATH=$PATH:/<new path ; export PATH

can anyone tell me what is wrong with this?

thanx.

Mara 07-27-2005 03:38 PM

Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

When you change PATH this way, the result is used only for this session. When you logout (or run another terminal) settings will be as before. When you want to have the change permanent, you need to add the command you use to change PATH to one of starting scripts. If you wat this only for your user, check $HOME/.bash_profile. If you want to use it for all users, edit /etc/profiles.

iNET_boss 07-27-2005 04:35 PM

thank you. :).


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