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
|
You could edit ~/.profile and add that command at the end of the file.
|
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.
|
/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. |