Find the answer to your Linux question:
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.
  1. #1
    Just 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?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    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 Standard
    You must always face the curtain with a bow.

  3. #3
    Just 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?

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    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/Java
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Mar 2013
    Posts
    4
    so where should i install java so that "java -version" will work?

  6. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    Just follow the documentation I linked.
    You must always face the curtain with a bow.

  7. #7
    Just Joined!
    Join Date
    Mar 2013
    Posts
    4
    sudo update-alternatives --config java
    this gives no alternatives.

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,572
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •