LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-10-2006, 10:06 AM   #1
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
How to create new permanent environment variable in Red hat Linux?


Hi there,

I'm trying to compile some software () which requires certain environment variables to be created. I've done it with:
Code:
[bash]# ENVNAME="environment variable value"; export ENVNAME
and everithing is fine, but after restart the newly created environment variables are gone... Any ideas how to include the new environment variables so they can persist?
 
Old 04-10-2006, 10:28 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Put that at the end of the .profile, or .bash_rc or .bash_profile file, depending on your distro.

Last edited by Agrouf; 04-10-2006 at 10:38 AM.
 
Old 04-10-2006, 10:38 AM   #3
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
Thank you very much!
 
  


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
Routing in a Virtual Environment (Red Hat 9) rookiepaul Linux - Networking 11 03-17-2006 02:14 AM
Linux Environment variable $GDMSESSION Details montylee Linux - Software 0 01-20-2005 12:28 AM
Red Hat 9.0 | create Bootfloppy raTSPO Linux - Newbie 2 04-12-2004 07:07 AM
How to change desktop environment in Red Hat 7.1 SiliconBadger Linux - General 2 10-31-2002 01:30 PM
Adding persistent(permanent) route entries on Red hat Linux 7.1 sram Linux - Networking 1 02-08-2002 10:07 AM

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

All times are GMT -5. The time now is 05:46 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