LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to setup environment variables?? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-setup-environment-variables-10185/)

devraj 12-16-2001 08:56 PM

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.:newbie:

bluecadet 12-17-2001 04:29 AM

in /etc/rc.local:

SOMEVARIABLE=value
export SOMEVARIABLE

jharris 12-17-2001 04:30 AM

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.

HTH

Jamie...


All times are GMT -5. The time now is 07:14 PM.