Re: Why complicated directory structure in Linux
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: 21 Sep 2006 16:14:40 GMT
Rockinghorse Winner <ny6p@xxxxxxxxx> writes:
mydejamail@xxxxxxxxxxx wrote:
Why is Linux directory structure laid out so, what is the rationale
such as
/bin
/usr/bin
/usr/local/bin
/sbin
/usr/sbin
/usr/local/sbin
and likewise for lib, share, libexec etc directories
Once upon a time, far far away, in a distant galaxy, the fathers (they
of blessed memory) of Unix found great comfort and insight in the
$Home/usr/bin, /sbin and /local/sbin directory structure, and over the
years many have recognized in it a truly insightful kind of mystical
*rightness* that cannot be explained, that cannot be rationalized. You
must simply accept and you will learn the secret soon enough. Now shut
up and lie down.
/bin,/lib,/sbin are for programs that are needed during bootup and must be
in the / directory which is mounted on bootup.
They are few in number so taht the / directory can be kept small if desired
for special boot situations.
sbin used to differ from bin in having statically liked
binaries (ie binaries which did not even need /lib) but now is for system
binaries-- ie binaries needed by root but should not be available to
users.
/usr/{bin,lib,sbin} are for the vast majority of binaries
/usr/local is for locally installed programs which are not part of the
system but have been installed by the local people for their own use.
Some systems use the /opt directory tree for that same purpose.
If you want to put eveything into /bin, you may. Most distros do not.
iMost distros find dividing things up in the usual way has its advantages.
--
god bless
http://www.Hello-Radio.Com
http://home.xandros.com/products/home/home_edition.html.
- Follow-Ups:
- Re: Why complicated directory structure in Linux
- From: Michael Heiming
- Re: Why complicated directory structure in Linux
- References:
- Why complicated directory structure in Linux
- From: mydejamail
- Re: Why complicated directory structure in Linux
- From: Rockinghorse Winner
- Why complicated directory structure in Linux
- Prev by Date: Re: Why complicated directory structure in Linux
- Next by Date: Dual boot sata ide
- Previous by thread: Re: Why complicated directory structure in Linux
- Next by thread: Re: Why complicated directory structure in Linux
- Index(es):