From owner-freebsd-questions Wed Sep 2 15:12:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA14661 for freebsd-questions-outgoing; Wed, 2 Sep 1998 15:12:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA14656 for ; Wed, 2 Sep 1998 15:12:43 -0700 (PDT) (envelope-from Studded@dal.net) Received: from dal.net (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id PAA20099; Wed, 2 Sep 1998 15:11:22 -0700 (PDT) (envelope-from Studded@dal.net) Message-ID: <35EDC289.F17CAAEF@dal.net> Date: Wed, 02 Sep 1998 15:11:21 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.06 [en] (X11; I; FreeBSD 2.2.7-STABLE-0827 i386) MIME-Version: 1.0 To: Andriss CC: questions@FreeBSD.ORG Subject: Re: bin, sbin, another bin... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andriss wrote: > > Hello everyone, > > 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. Read 'man hier' it will answer a lot of your questions. :) Part of the logic is that if you give users access to certain filesystems (say, on /usr) and they hose them up, the sysadmin can use the tools in /bin and /sbin to repair the damage because users have no write access to those areas, therefore they cannot muck them up. :) Welcome to unix, Doug (which is not an acronym BTW, so unix or Unix is correct, UNIX is not) -- *** Chief Operations Officer, DALnet IRC network *** At Barry (a small town in south Wales) hidden cameras have had to be installed to keep watch on the town's CCTV [Closed Circuit Television] to record acts of vandalism against the CCTV. - Privacy Forum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message