LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2012, 02:51 AM   #1
xcislav
LQ Newbie
 
Registered: Feb 2011
Location: Kiev, Ukraine
Posts: 25

Rep: Reputation: 0
Post 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
 
Old 11-06-2012, 03:52 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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
 
Old 11-06-2012, 04:34 AM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why do we use gerp & env & wht is their funda nikhil_rs_maheshwari Solaris / OpenSolaris 12 03-06-2006 02:21 PM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
set, env, source & "completely empty environment..." ? na5m Linux From Scratch 1 01-28-2005 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration