PDA

View Full Version : [all variants] [SOLVED] Adding something to your path.



YourSurrogateGod
October 28th, 2008, 02:23 AM
Silly question, but how would you do it? Edit the /etc/profile file and add it? Say, add the below line?

FOO_VAR="/some/random/path"

When I type in echo $PATH, this is what I get:

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Where does all of this stuff get set?

Any suggestions on basic administration for dummies books :) ?

drakeman007
October 28th, 2008, 02:27 AM
Dont know if this helps!


http://www.newlinuxuser.com/howto-add-a-directory-to-my-path-statementvariable/

Regars

YourSurrogateGod
October 28th, 2008, 02:32 AM
Yeh, that shows me how it's set and all, thanks.

drakeman007
October 28th, 2008, 02:33 AM
Glad to read!
You welcome!

annatar
October 28th, 2008, 02:34 AM
Also check this out : https://help.ubuntu.com/community/SystemAdministration

drakeman007
October 28th, 2008, 02:34 AM
Sorry for the duplicated post!