Results 1 to 8 of 8
what are system wide locations in linux?
is there only one such location? can it be changed?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-22-2013 #1Just Joined!
- Join Date
- Mar 2013
- Posts
- 4
system wide locations
what are system wide locations in linux?
is there only one such location? can it be changed?
- 03-22-2013 #2
Hi and welcome
there are multiple type of file.
Binaries, configfiles, logfiles, etc
Each do have well defined system wide locations, and some additionally do have user local ones.
You didnt specify, which type you need. So for a comprehensive overview, look here:
Filesystem Hierarchy StandardYou must always face the curtain with a bow.
- 03-22-2013 #3Just Joined!
- Join Date
- Mar 2013
- Posts
- 4
actually i was trying to install java on ubuntu 12.10 from this link
java.com/en/download/help/linux_x64_install.xml
there is a note about root access on the page.....can you explain me what its saying?
- 03-22-2013 #4
root is a privileged user.
This account has control over all the aspects of a system, not just file access.
As you are using ubuntu, this guide is more appropiate
https://help.ubuntu.com/community/JavaYou must always face the curtain with a bow.
- 03-22-2013 #5Just Joined!
- Join Date
- Mar 2013
- Posts
- 4
so where should i install java so that "java -version" will work?
- 03-22-2013 #6
Just follow the documentation I linked.
You must always face the curtain with a bow.
- 03-22-2013 #7Just Joined!
- Join Date
- Mar 2013
- Posts
- 4
sudo update-alternatives --config java
this gives no alternatives.
- 03-23-2013 #8Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,148
Depending upon the variety of java you are installing, it can be installed into /etc/alternatives (openjdk) or /usr/java (sun/oracle java). If you installed sun/oracle java, then the last version you installed will have a link as /usr/java/latest, and /usr/bin/java will have been configured to point to the bin/java executable under that. You can have multiple versions of java installed, but only one will be the default. Personally, I very much dislike the alternatives way of doing things, but have to deal with it given we do a LOT of java programming where I work. Thankfully, most of my work is in C++...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
