LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-20-2010, 08:15 AM   #1
bdtagar
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Wink Where are the PATH variables stored in?


Hi,
Dear when I issue the following command at shell:
echo $PATH
All the user variables are displayed on the console terminal window:
Now my question is that, In which file these variables are stored and where is it stored?
My Problem: I had installed OpenJDK that came with Fedora-12. Now I have uninstalled it. I want to use SunJDK6. After installation I want to set new JVM in path variables. I can set variables, but before doing so I want to remove some old variables.

Thanks in advance
Badar
 
Old 08-20-2010, 08:42 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
In redhat

Code:
/etc/bashrc
/etc/profile
~/.bash_profile
debina

Code:
/etc/profile
 
Old 08-20-2010, 08:47 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

And an addition to sem007's answer: /etc/profile.d/extrapaths.sh could also be used depending on your distro.
 
  


Reply



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
where are the variables stored in the kernel? shendeswanand Linux - Software 1 12-30-2005 02:14 PM
Where are environment variables stored? binarybob0001 Linux - General 8 11-15-2005 08:54 PM
where are the environment variables stored? ojav Linux - Newbie 3 05-31-2005 04:00 PM
commands stored into variables? benne Programming 2 11-15-2004 07:20 PM
Where are variables permaninently stored? tearinox Linux - General 4 06-05-2004 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration