Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
source and profiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
paradigm-X
Apprentice
Apprentice


Joined: 19 Sep 2013
Posts: 168

PostPosted: Sat Feb 08, 2014 6:53 pm    Post subject: source and profiles Reply with quote

Sometimes, after changing a configuration setting of one kind or another, I see an instruction like this:

"if you intend to use...whatever, ...please remember to do: '. /etc/profile' ";

then, at other times I see similar instruction, like this:

"remember to do: 'source /etc/profile' ".

Are these equivalent expressions? Also, is it equivalent to just logout and then login? I surely would like to see a link pointing to an explanation of what these two commands accomplish exactly.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Sat Feb 08, 2014 8:54 pm    Post subject: Reply with quote

For bash, . and source are synonymous.
. and source basically reads those files into your current command line and executes them. The environment variables need to be changed which is the intent of doing these things, and if your machine is setup properly these files should be read in upon login, hence logout+login does the trick.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
paradigm-X
Apprentice
Apprentice


Joined: 19 Sep 2013
Posts: 168

PostPosted: Sun Feb 09, 2014 3:10 pm    Post subject: Reply with quote

Muchas gracias, eccerr0r.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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