Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux General

Linux General Any questions that are not covered by other forums go here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-2008, 02:17 PM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default 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?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-19-2008, 01:01 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 570
Jordan is on a distinguished road
Default

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.
Reply With Quote
  #3 (permalink)  
Old 11-27-2008, 03:14 PM
mop mop is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
mop is on a distinguished road
Default

Interesting to learn. I have never heard of a man hier.
Reply With Quote
  #4 (permalink)  
Old 11-28-2008, 11:55 AM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

What's a man hier? Is that a command in Linux?
__________________
Business Directory
Technology Blog
Reply With Quote
  #5 (permalink)  
Old 11-29-2008, 02:49 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 570
Jordan is on a distinguished road
Default

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".
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 11-30-2008, 04:09 PM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

So it's like a help file, right?
__________________
Business Directory
Technology Blog
Reply With Quote
  #7 (permalink)  
Old 12-04-2008, 02:39 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 390
Tor is on a distinguished road
Default

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.
Reply With Quote
Reply

Tags
directories

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Difference between Linux and Unix? Justice M Linux General 8 05-10-2008 02:02 PM
Difference between parked and addon domain ptt3 Linux Web Server 1 10-09-2007 03:41 PM


All times are GMT. The time now is 01:37 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.