From owner-freebsd-questions@FreeBSD.ORG Sun Jul 8 06:57:50 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D1D7616A421 for ; Sun, 8 Jul 2007 06:57:50 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id 6C26013C44C for ; Sun, 8 Jul 2007 06:57:49 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id QAA14453; Sun, 8 Jul 2007 16:57:17 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 8 Jul 2007 16:57:16 +1000 (EST) From: Ian Smith To: Jeffrey Goldberg In-Reply-To: <20070708040924.9E9AA16A47D@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org, Lisa Casey , Peter Boosten Subject: Re: Adding a new command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 06:57:50 -0000 On Sat, 7 Jul 2007 16:20:53 -0500 Jeffrey Goldberg wrote: > On Jul 7, 2007, at 11:42 AM, Peter Boosten wrote: > > > It's more obvious to put local scripts in /usr/local/bin, IMHO. > > Let me add to this (as someone who recently moved from linux to > FreeBSD). Unlike Linux, FreeBSD isn't just a kernel, but a complete > operating system. So the things in /bin and /usr/bin are as fully > part of FreeBSD as the kernel itself, while on Linux distributions, > those things are bundled with Linux as part of a distribution. > > So this is one reason why it is best to put tools like you describe in > > /usr/local/sbin My preference for such local scripts that ought not be confused with any system (or local port) scripts is to put them in /root/bin .. no chance of any sort of upgrade clobbering them there, and your own scripts are all together. You need to specify full path for any of these where used in a crontab, but that's good practice anyway. If you're using [t]csh, as Lisa appears to be (needing to run 'rehash' to find newly added commands), $HOME/bin is already in the default path. Cheers, Ian