LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-03-2006, 07:39 AM   #1
hello321_1999
Member
 
Registered: Nov 2004
Posts: 33

Rep: Reputation: 15
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.
 
Old 05-03-2006, 08:37 AM   #2
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Try this:
$ grep JAVA_HOME / -r
 
Old 05-03-2006, 08:50 AM   #3
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Have you checked under /etc/profile.d/ ? /etc/profile will often (distro dependant) include files in this directory.
 
Old 05-03-2006, 11:41 AM   #4
hello321_1999
Member
 
Registered: Nov 2004
Posts: 33

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
environment variables slinky2004 Linux - General 4 11-26-2005 09:59 AM
Do Perl functions usually modify variables, or return modified copies? Why? johnMG Programming 3 02-06-2005 10:22 PM
environment variables Prakhardeep Linux - Software 3 10-06-2004 03:30 AM
environment variables in c++ s3b0 Programming 6 08-27-2004 09:19 AM
environment variables kakridge Linux - Newbie 1 07-14-2003 06:25 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration