Closed Thread
Results 1 to 7 of 7

Thread: Difference between /bin, /sbin, /usr/bin, /usr/sbin

  1. #1
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0

    Difference between /bin, /sbin, /usr/bin, /usr/sbin

    What is the difference between the directories /bin, /sbin, /usr/bin, /usr/sbin? Why can't they all just be in one directory - /bin?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    If you do a "man hier" you can see a "description of the file system hierarchy". It shows what different directories are for:

    Code:
           /bin   This directory contains executable programs which are needed  in
                  single user mode and to bring the system up or repair it.
    
           /sbin  Like /bin, this directory holds commands needed to boot the sys-
                  tem, but which are usually not executed by normal users.
    
           /usr/bin
                  This  is  the  primary  directory for executable programs.  Most
                  programs executed by normal users which are not needed for boot-
                  ing  or  for  repairing  the  system and which are not installed
                  locally should be placed in this directory.
    
           /usr/sbin
                  This  directory contains program binaries for system administra-
                  tion which are not essential for the boot process, for  mounting
                  /usr, or for system repair.

  4. #3
    mop
    mop is offline Learning Programmer
    Join Date
    Apr 2008
    Posts
    30
    Rep Power
    0
    Interesting to learn. I have never heard of a man hier.

  5. #4
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    What's a man hier? Is that a command in Linux?

  6. #5
    Jordan Guest
    It is the manual page for the Linux file system hierarchy. Just about every command has a manual page which can be seen using "man <command" such as "man vi".

  7. #6
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    So it's like a help file, right?

  8. #7
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    Yes, they are basically help files. If you bought the software in a box it would be the hard-paper "manual" that came with the software.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is this ANY way difference from C?
    By WiiFan2012 in forum C# Programming
    Replies: 4
    Last Post: 06-17-2010, 03:45 PM
  2. Difference between c and c++
    By Chinmoy in forum C Tutorials
    Replies: 38
    Last Post: 08-27-2008, 01:10 AM
  3. What's the difference
    By r0adrunn in forum JavaScript and CSS
    Replies: 24
    Last Post: 06-19-2008, 10:48 AM
  4. Is there a difference
    By deloreandude in forum C and C++
    Replies: 5
    Last Post: 05-23-2008, 08:44 AM
  5. difference between C and C++
    By sigs in forum C and C++
    Replies: 9
    Last Post: 03-04-2008, 09:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

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