Help answer threads with 0 replies.
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-10-2006, 10:06 AM   #1
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:
[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
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
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
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

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


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
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 > Forums > Linux Forums > Linux - Newbie

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