Hello
When I do set command, I receive a lot of environment variables that are not present in the /etc/profile.
how to detect and debug where these come from?
thx
Hello
When I do set command, I receive a lot of environment variables that are not present in the /etc/profile.
how to detect and debug where these come from?
thx
Variables can be set by several init scripts and by the shell itself. You should tell what shell you are using and how you log in to the system.
Typical locations are:
/etc/default/init, /etc/default/login, ~/.profile, ~/.dtprofile, ...
There's a man page on this:
man 5 environ
That would be "man -s 5 environ".
man 5 environ
man -s 5 environ
both do the same thing on RedHat.
Indeed, but this is the "Sun Solaris" forum with which the first syntax is incorrect.
Sorry. I coulda sworn this was in the linux forum. 