LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-01-2003, 06:15 PM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
Enviromental variable question


when i set a enviromental varible for instance

export whatever=location/of/file

where does it get written to?? does it stay in ram?? Are these used just before you compile a program so it knows where to tell the binary where these files are located?? Or are there other uses??

thanks
 
Old 05-01-2003, 06:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
where does it get written to?? does it stay in ram??
Yep ... :) ...just RAM.

Quote:
Or are there other uses??
Sure are :) ... for instance $PATH is quite vital
for all you do in your system ...

just do an env on your bash-prompt and modify
a few of them ;)

Why are they kept in memory rather than in a file?
I'd assume it's got to do with the olden days when
HDDs were just soooo slow, and if more or less with
everything you do on the comp the file needs to be
read again ... :)

Cheers,
Tink
 
Old 05-01-2003, 06:39 PM   #3
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
ok thanks, reason was i was trying to install something and had to enter a few of those and was trying to find out where the text file was to see what else what set. but guess there is none
 
Old 05-01-2003, 06:44 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Code:
env
to see what's set :) (Asuuming you're using bash)

Cheers,
Tink
 
  


Reply


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
Enviromental Variables Serbulent Debian 2 04-28-2005 05:53 AM
python variable question bendeco13 Programming 6 02-03-2005 07:22 AM
[c shell] variable question saiz66 Programming 5 09-29-2004 09:45 AM
enviromental varibles rlpt Linux - General 1 03-14-2002 09:06 AM
Help with Enviromental Variables george3k Linux - General 4 09-14-2001 11:35 AM


All times are GMT -5. The time now is 07:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration