From owner-freebsd-questions Wed Sep 2 09:38:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA19589 for freebsd-questions-outgoing; Wed, 2 Sep 1998 09:38:05 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from marlin.exis.net (marlin.exis.net [205.252.72.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA19581 for ; Wed, 2 Sep 1998 09:38:03 -0700 (PDT) (envelope-from stefan@exis.net) Received: from sailfish.exis.net (stefan@sailfish.exis.net [205.252.72.104]) by marlin.exis.net (8.8.8/8.8.8) with SMTP id MAA23402; Wed, 2 Sep 1998 12:36:56 -0400 Date: Wed, 2 Sep 1998 12:36:56 -0400 (EDT) From: Stefan Molnar To: Andriss cc: questions@FreeBSD.ORG Subject: Re: bin, sbin, another bin... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Well it is very simple. /bin -for core systems binaries that are needed to boot. Just in case your /ust slice is dead. /sbin -Same as above but that are staticly linked to their libaries /usr/local/{bin,sbin} -For binaries that are installed localy to the machine that is not part of the core instalation of FreeBSD Like netscape, xv, pine. elm /usr/{bin,sbin} For the rest of the installed binaries, such as talk, cvs, du, ee, tip The reason for the seperation is to make it eaiser to locate the programs. There is no reason to have netscape in the /usr/bin/ because it is not a part of FreeBSD. You can make the /usr/local a NFS mount so one machine can hold the binaries for a custer of machines. Also it would not be pretty to have one directory with 400+ programs in it. Stefan > I installed 2.2.7-release, and everything seems > working fine, though I have a question about the > directories where all binaries are put in. > > >From what I understand there are these dirs: > /bin > /sbin > /usr/bin > /usr/sbin > /usr/local/bin > /usr/local/sbin > > My question is, why so many? what is the reason for > keeping all these dirs, instead of, say, one? > > Is it because /bin and /usr/bin are on different > slices, so that /bin sits on root slice? > If so, what is /sbin? > > I know this is not a real practical question, but > I just want to see the logic of file placement > in UNIX. > > Thanks you, > > Andriss > > P.S. oh, yes, there is also /usr/X11R6/bin, but > it's understandable that only X files are put there. > > > ________________________________________ > Andriss@ArGate.com http://ArGate.com > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message