Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried looking this one up on the net and am so far confused. I will continue looking.
In particular, I just installed the jdk-6u7 rpm, but the path is still pointing to the old 1.4.2 (at least when I run java -version) it still tells me that version number.
I want to find where the path info is for that and fix it.
By the way, I should add that there is no /etc/profile file there is an /etc/profile.d directory
Err... I take that back. Maybe I mistyped the word last time. I probably got this now. Sorry to junk up the page with another post.
EDIT:
Great... a new problem. I have automatic updates configured, but this file as marked as a "do not change" because updates may overwrite it. But how else can I set the path permanently for all users on the system?
The path gets set in system profile file
to know where the path is set, may be long, but u can use
bash -x
to trace through the commands and find out where the path is being set.
This is for bash shell only and in case of other shells appropriate command must be used.
The path gets set in system profile file
to know where the path is set, may be long, but u can use
bash -x
to trace through the commands and find out where the path is being set.
This is for bash shell only and in case of other shells appropriate command must be used.
I can't even FIND the old Java 1.4.2 installation. And I can't find any file that specified a path to it (or any other version of Java).
I really need to get this done by Sunday night Your help is as always greatly appreciated!
I ran the find command on the entire system seraching for *jdk* and it tells me it didn't find anything. Then I go to /usr/java/ and search there and it finds the whole 1.6 jdk. How the hell did my system wide search for *jdk* not find the 1.6 jdk (and it should have found the 1.4.2 wherever it is).
Assuming your users have the default shell of bash, then put stuff like alterations to $PATH in to /etc/bash.bashrc.local - it doesn't exist by default but if you look at /etc/bash.bashrc it tells you not to put stuff in there and use /etc/bash.bashrc.local
Ideally I'd like to find the file that currently says "java 1.4* this way" and edit it. I want to make back up of that file and restore it if anything goes wrong.
This bash.bashrc doesn't have anything like that in it. That I can find (using /java /jdk and /$PATH in vi).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.