$PATH

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
mbrown
Level 1
Level 1
Posts: 14
Joined: Thu Mar 22, 2007 4:08 am
Location: Calgary AB
Contact:

$PATH

Postby mbrown » Tue Jun 19, 2007 2:44 am

How doth one change thine $PATH variable?

I've googled, but all the files that seem to be popular - don't seem to contain the variable anywhere :(

Tx.

Husse
Level 23
Level 23
Posts: 19594
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby Husse » Tue Jun 19, 2007 5:14 am

Which path variable and why?
Never heard of thine $path
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

User avatar
facade47
Level 3
Level 3
Posts: 152
Joined: Fri Feb 16, 2007 4:46 am

Postby facade47 » Tue Jun 19, 2007 5:26 am

I don't think there's a permanent way to change it (i could never find a way), but to change it for a particular bash session, type in

export PATH=/your/alternate/path:$PATH

to add /your/alternate/path to the beginning of $PATH

Husse: you only have one $PATH in life :lol:

Husse
Level 23
Level 23
Posts: 19594
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby Husse » Tue Jun 19, 2007 6:38 am

you only have one $PATH in life
Agreed, that's why I asked what thine $path is :)
And in my case it seems only one wife in life too :)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

User avatar
scorp123
Level 8
Level 8
Posts: 2264
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby scorp123 » Tue Jun 19, 2007 1:01 pm

facade47 wrote:I don't think there's a permanent way to change it
:lol: :lol: :lol:

Edit .profile, .bashrc .... or the system-wide defaults in /etc/profile and /etc/bashrc :wink:

User avatar
Boo
Level 8
Level 8
Posts: 2363
Joined: Mon Mar 26, 2007 7:48 am

Postby Boo » Tue Jun 19, 2007 8:54 pm

/etc/environment has the top level $PATH in it for everyone.

:D
Image
Now where was i going? Oh yes, crazy!

User avatar
scorp123
Level 8
Level 8
Posts: 2264
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby scorp123 » Wed Jun 20, 2007 12:45 pm

Boo wrote:/etc/environment has the top level $PATH in it for everyone.
Yeap, if you want to edit the system-wide defaults you could go for that one too :wink:


Return to “Newbie Questions”

Who is online

Users browsing this forum: austin.texas, JeremyB, Jim Hauser and 19 guests