Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-16-2013, 10:28 PM   #1
Fred Caro
Senior Member
Registered: May 2007
Posts: 1,007

Rep: Reputation: 166Reputation: 166
environment variables, are they governed by GDM? or something outside, e.g., echo $so

There seems to be something missing when I try to search for env, e.g., "echo $EDITOR" or "echo $VISUAL

so what is this governed by on Debian6?

Old 03-16-2013, 10:56 PM   #2
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
Environment variables are not governed by your distro or desktop environment. They are set using your shell & system's initializations files. If some of env variable is missing or not set then you will need to set it.

To check:
~$ env
~$ printenv
To set a value:
~$ EDITOR=vi
~$ export EDITOR
~$ echo $EDITOR
Old 03-17-2013, 06:02 AM   #3
Senior Member
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 274Reputation: 274Reputation: 274
Hi Fred,

try read here and here

1 members found this post helpful.
Old 03-18-2013, 09:35 PM   #4
Fred Caro
Senior Member
Registered: May 2007
Posts: 1,007

Original Poster
Rep: Reputation: 166Reputation: 166
thanks, the second 'here' was helpful, especially if every program can have its own set of env although this is given for Ubuntu and not Debian. What is perplexing is the governing file, bashric or profile- from the env command at ~/ there are various defaults (DESKTOP_SESSION=default) or (GDMSESSION=default) which must be governed by the lasting configuration, i.e., bashric or profile, so:
a, will defaults be recognised and overridden, even temporarily
b, whatis a GDMSESSION as opposed to a gimp session?

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] echo and Variables jettwa2001 Programming 4 04-30-2011 03:49 PM
bash echo variables casperdaghost Linux - Newbie 9 03-10-2010 05:21 PM
echo variables into config file. Karas Linux - Newbie 1 11-27-2009 12:15 PM
How to echo variables and commands in one line? hindll01 Programming 1 09-10-2004 07:02 AM
environment variables and gdm problem cpv204 Slackware 1 05-27-2003 09:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 AM.

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