Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-03-2006, 07:39 AM   #1
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:


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
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
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 32
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
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 These files set the environment variables I mentioned above.

I believe /etc/profile calls the files in /etc/profile.d


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

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