Welcome to the most active Linux Forum on the web.
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 04-08-2004, 12:03 AM   #1
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
Where are the environmental variables (eg. $DISPLAY) stored?


david:/etc# echo $DISPLAY
david:/etc# echo $TERM

In which file can these environmental variables' assignment be found?

Thanks !
Old 04-08-2004, 12:09 AM   #2
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
type 'env' or 'printenv' .

I think enviornment variables are stored in kernel space memory.
you can also set these.
setenv, $HOME=/blah , $whatever=$?
Old 04-08-2004, 02:33 AM   #3
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
In either your .bash_profile or your .bashrc files. You generally have generic files in your /etc/skel directory, and every user has them in thier user directory. They're hidden files, as that's what the '.' in front of the name does, but you can see them with 'ls -A'

cat /home/username/.bash_profile should show some of your path (the $PATH part is based on your startup files in /etc), but there might be additional settings in /home/username/.bashrc


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
Environmental Variables danglingpointer Slackware 13 01-06-2005 01:36 AM
environmental variables msound Programming 0 08-21-2004 08:06 PM
environmental variables? blackzone Linux - General 1 08-06-2004 04:44 AM
environmental variables mbhenry Linux - General 6 09-18-2003 12:41 PM
global environmental variables antadam Linux - General 2 10-11-2001 07:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 PM.

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