LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   env variables (https://www.linuxquestions.org/questions/solaris-opensolaris-20/env-variables-431954/)

AbrahamJose 04-05-2006 07:58 AM

env variables
 
I login as root to solaris9
env lists out many variables.
Some of them are defined in /etc/profile
Others are not defined there.
Actually, where other variables are defined(Eg .. TZ,HZ etc..)

Simillarly for echo $PATH
displays /usr/bin
/usr/sbin
/usr/ucb
Eventhough not defined in /etc/profile , .profile or .dtprofile

Matir 04-05-2006 08:46 AM

Many variables may be assigned initial (default) values by the shell itself, or in the system startup scripts.

AbrahamJose 04-05-2006 12:19 PM

Thanks
 
Thanks.
My intrest is to know such files and scripts

jlliagre 04-05-2006 03:35 PM

/etc/default/init set TZ and a couple other.

Not sure about the origin of this PATH, just noticed we got a different one when login through telnet.

AbrahamJose 04-18-2006 12:31 PM

Thanks
 
Thank u Sir.
It seems, telnet and rlogin makes no difference.
But local login makes a lot of difference.


All times are GMT -5. The time now is 03:03 AM.