Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-28-2004, 03:04 PM   #1
Registered: Aug 2002
Location: Huntsville AL
Distribution: redhat 7.3
Posts: 48

Rep: Reputation: 15
export variables


I want to add 'export something=something' automatically after I login. Where can I put it besides .bashrc ?

Is it possible to define a variable I want to export at boot up time?

Thanks ahead!
Old 04-28-2004, 03:06 PM   #2
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
~/.bash_profile and /etc/profile respectively.
Old 04-28-2004, 06:52 PM   #3
Registered: Aug 2002
Location: Huntsville AL
Distribution: redhat 7.3
Posts: 48

Original Poster
Rep: Reputation: 15
preload exports

Thank you soooooooo much. It works great and I learned. Will read up on the /etc/profile and ~.bash_profile uses.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why do we have to export variables? learnfast Linux - Newbie 2 05-27-2005 08:27 AM
export variables alaios Linux - General 3 12-04-2004 07:33 AM
keep my export variables captain-cat Linux - Newbie 9 06-23-2004 05:22 AM
Why wont my variables export? suerevans Linux - Newbie 5 04-05-2004 03:46 AM
really easy question: why won't my environment variables export digitized_funk Linux - Newbie 3 10-22-2003 05:22 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:33 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
Open Source Consulting | Domain Registration