I have a linux instance that I set up some time ago. When I fire it up and log in as root there are some environment variables that I set up but I can't remember or find where they came from. I've checked ~/.bash_profile, /etc/.bash_rc, and all the startup scripts. I've run find and grep to no avail. I feel like I must be forgetting to look in some place obvious. Is there a trick for figuring this out?
|
|
||||
|
If you use the |
||||
|
|
|
If you put If your system uses PAM, look for |
|||
|
|
|
Check your startup scripts for files that they source using |
|||
|
|
|
@Cian is correct. Other than using
|
|||
|
|
|
Other than find and grep (which seem to have already failed), I'm afraid not. |
|||
|
/etc/environmentis another one. – derobert Aug 20 '10 at 18:44/etc/env.d/*files. But doinggrep -R "YOUR_VARIABLE" /etc/is probably the best way to find out. – rozcietrzewiacz Aug 28 '11 at 0:53