Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about PATH
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Valheru
Guru
Guru


Joined: 14 Mar 2003
Posts: 300
Location: Leeuwarden - The Netherlands

PostPosted: Wed May 07, 2003 9:53 am    Post subject: Question about PATH Reply with quote

Where are your PATH variables kept? I ask because after I emerged colorgcc it said to make sure that it was in my PATH before something else (I'm at work now). I seem to recall that for the root that information is kept in /etc/profile (although I may be wrong) - but I havn't a clue as to where the PATH information is kept for a user, I'd guess somewhere in the $HOME directory ;)
Back to top
View user's profile Send private message
magnet
Guru
Guru


Joined: 16 Mar 2003
Posts: 582
Location: france

PostPosted: Wed May 07, 2003 10:16 am    Post subject: Reply with quote

looks in /etc/env.d/00hostname . 8)
throught there are others ways to set PATH.
note that if you you want to know your PATH value ,
a simple echo $PATH is enough.
_________________
every step aim at glory.
Back to top
View user's profile Send private message
Valheru
Guru
Guru


Joined: 14 Mar 2003
Posts: 300
Location: Leeuwarden - The Netherlands

PostPosted: Wed May 07, 2003 12:55 pm    Post subject: Reply with quote

Yes I know you can do an export PATH=... but for one they explicitly instructed you to ensure that the PATH variable ended up before some other PATH variable and also I want to know which file stores the PATH variables - otherwise I might as well go back to using Windows ;)
Back to top
View user's profile Send private message
ghuug
Bodhisattva
Bodhisattva


Joined: 07 May 2003
Posts: 53
Location: West Africa

PostPosted: Wed May 07, 2003 11:20 pm    Post subject: Reply with quote

check /etc/profile
or ~/.bashrc if using bash
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Wed May 07, 2003 11:48 pm    Post subject: Reply with quote

PATH is first set in /etc/profile. It is set thereafter in $HOME/.bash_profile. It is not set in /etc/bashrc or $HOME/.bashrc for several reasons I don't really want to go into right now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum