LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permenantly set an environment variable? (https://www.linuxquestions.org/questions/linux-newbie-8/permenantly-set-an-environment-variable-386539/)

slinky2004 11-25-2005 06:07 PM

permenantly set an environment variable?
 
i want to update my $PATH to include a new folder. i can do this with "export PATH=$PATH:newfolder" but how can i make it so that this new folder is always in the path? is there some startup script i can edit that sets the path? i'm running slackware 10.2

bigrigdriver 11-25-2005 06:39 PM

You could edit ~/.profile and add that command at the end of the file.

den15 11-25-2005 07:39 PM

edit your etc/profile file. i supose that u don't have .profile in home directory. profile in etc directory works global, so it should work.

jrdioko 11-25-2005 11:28 PM

/etc/profile will affect all users. If you want to just have it for one user, put it in their ~/.bash_profile


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