$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

$PATH

Postby mbrown on 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.
User avatar
mbrown
Level 1
Level 1
 
Posts: 14
Joined: Thu Mar 22, 2007 4:08 am
Location: Calgary AB

Linux Mint is funded by ads and donations.
 

Postby Husse on 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
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby facade47 on 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:
User avatar
facade47
Level 3
Level 3
 
Posts: 152
Joined: Fri Feb 16, 2007 4:46 am

Postby Husse on 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
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby scorp123 on 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
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby Boo on 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
Boo
Level 8
Level 8
 
Posts: 2364
Joined: Mon Mar 26, 2007 7:48 am

Postby scorp123 on 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:
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot] and 28 guests