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 12-16-2001, 08:56 PM   #1
LQ Newbie
Registered: Dec 2001
Location: Mumbai, India
Distribution: Redhat 7.1
Posts: 8

Rep: Reputation: 0
Question How to setup environment variables??

Hello Friends,
I got some material on how to setup env. var. on RH7.1 but each one of them were telling different different file modifications. Can anyone tell me exact and most formal way of adding env. var. for all users as well as for single user??

Thank You.
Old 12-17-2001, 04:29 AM   #2
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
in /etc/rc.local:

Old 12-17-2001, 04:30 AM   #3
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Typically to set environment variables for all users you would edit /etc/profile. For specific uses you would edit ~/.profile or ~/.bashrc ~/.cshrc depending on your shell.




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
Environment Variables - where do they go!?! iansoundz Linux - General 7 11-17-2005 02:27 AM
environment variables in c++ s3b0 Programming 6 08-27-2004 09:19 AM
when to use environment variables? mark_2811 Programming 2 02-23-2004 06:09 PM
environment variables moeminhtun Linux - General 4 01-15-2003 09:50 AM
environment variables da Perp Linux - Newbie 5 01-23-2002 09:34 AM > Forums > Linux Forums > Linux - Newbie

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