LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   env-update && source /etc/profile - Want to know more (https://www.linuxquestions.org/questions/linux-newbie-8/env-update-and-and-source-etc-profile-want-to-know-more-4175435857/)

xcislav 11-06-2012 02:51 AM

env-update && source /etc/profile - Want to know more
 
As written in handbook, you need to restart X in order to get X with updated variables (in /etc/profile.env)
Or to execute all commands in all terminals ...

But if I have executed the command in one terminal then logged out through another X window (not terminal) then logged in by startx... - no variables?
Maybe to try to logout only through the terminal in which I issued the command before. But after logging out - terminal perishes. - no env variables, too.

What did they meant?
I'm pretty unsure in those things and in which cases to issue env-update && source /etc/profile

chrism01 11-06-2012 03:52 AM

1. if you set a variable in a login session, it only exists within that session and only until you logout of that session.
2. no need to source /etc/profile; it happens automatically as part of the login process

General refs/tutorials
http://rute.2038bug.com/index.html.gz
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/

Login process
http://www.linuxjournal.com/article/3121
http://www.comptechdoc.org/os/linux/...x_hllogin.html

shivaa 11-06-2012 04:34 AM

Have you set environmental variables in /etc/profile? and want to execute them after resarting for X windows... Right?


All times are GMT -5. The time now is 03:07 PM.