Where do I add/delete/modify 'environment variables'?
I have just recently installed SuSE Linux Enterprise server 8. I uninstalled Java. I rebooted the machine and logged in as root. When I type 'env' in a shell, I notice I still have the environment variables:
JRE_HOME=/usr/lib/java/jre JAVA_BINDIR=/usr/lib/java/bin JAVA_HOME=/usr/lib/java JDK_HOME=/usr/lib/java JAVA_ROOT=/usr/lib/java Where are these being set? How do I stop these shell environment variables from being set? FYI, I have checked /root/.profile and /etc/profile and they are not being set in these files. |
Try this:
$ grep JAVA_HOME / -r |
Have you checked under /etc/profile.d/ ? /etc/profile will often (distro dependant) include files in this directory.
|
Thanks ioerror. If I navigate to /etc/profile.d, I find 2 files called alljava.csh and alljava.sh. These files set the environment variables I mentioned above.
I believe /etc/profile calls the files in /etc/profile.d |
All times are GMT -5. The time now is 08:42 AM. |