Find the answer to your Linux question:
Results 1 to 7 of 7
Just wondering what the differences and uses are these folders: 1. Difference between /bin & /sbin ? 2. Difference between /usr/bin and /usr/local/bin ? 3. What's the use of /etc ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    208

    The different *nix folders woes :S


    Just wondering what the differences and uses are these folders:

    1. Difference between /bin & /sbin ?
    2. Difference between /usr/bin and /usr/local/bin ?
    3. What's the use of /etc ?
    4. What's the difference between the folders inside / (top level) & /usr ?
    5. What's the use of /var ?

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Belgium
    Posts
    1,429
    var = logs etc. (best to keep them separated)
    /etc = system configuration?
    ** Registered Linux User # 393717 and proud of it ** Check out www.zenwalk.org
    ** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Well, the answer to 1 is that:

    /bin = binaries
    /sbin = superuser binaries

    Basically, /sbin is only for root.


    To answer your other questions:

    Filesystem Hierarchy Standard

  4. #4
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    208
    Well explained!

  5. #5
    Just Joined! brother_mick's Avatar
    Join Date
    Jun 2005
    Location
    United Kingdom
    Posts
    65
    There is a document on the Linux Documentation Project page that will help you understand the layout of the linux flesystem.

    http://www.tldp.org - LDP homepage

    Look in the guides sectrion and you will find Linux Filesystem Hierarchy

    The LDP is an exelent resource and well worth adding to your favorites

  6. #6
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    /bin and /sbin are both for binaries essential for the system to boot. /sbin is for the essential config, admin, and boot commands (/sbin is not only for root). /usr/bin is where most binaries installed by your distro will go, /usr/local/bin is where most binaries installed by you should go. /etc is for configuration files. /var contains variable data, things like logs, mail, lock files, and whatnot. The difference between / and /usr is that / is supposed to contain all the essential stuff to get the system up and running, in case /usr is on another partition and cannot be mounted for whatever reason.

    Much more is available by reading the Filesystem Heirachy Standard at http://www.pathname.com/fhs/pub/fhs-2.3.html which I believe someone already posted the link to.

  7. #7
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    208
    Thanks man. Very informative information.

Posting Permissions

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