Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    var = logs etc. (best to keep them separated)
    /etc = system configuration?
    Debian Jessie x86_64 & armhf :: LibreELEC is the solution for your Linux-based HTPC setups.

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Seattle, WA, USA
    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. $spacer_open
  5. #4
    Well explained!

  6. #5
    Just Joined! brother_mick's Avatar
    Join Date
    Jun 2005
    United Kingdom
    There is a document on the Linux Documentation Project page that will help you understand the layout of the linux flesystem. - 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

  7. #6
    Linux Engineer
    Join Date
    Nov 2004
    /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 which I believe someone already posted the link to.

  8. #7
    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