From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 16:34:08 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A39E1065670 for ; Wed, 16 Apr 2008 16:34:08 +0000 (UTC) (envelope-from bsd.talk@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id DEE728FC13 for ; Wed, 16 Apr 2008 16:34:07 +0000 (UTC) (envelope-from bsd.talk@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so1408128ywt.13 for ; Wed, 16 Apr 2008 09:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=xcTCCZUosPWT5LqsFygb36LBD/evRcbJr1oNlVPMchc=; b=Xfis9g3oq3vd40A6cVBhnggN64HqkesxhR2L+XBIzDk5QDHJSMAahlvl+rOBgTgviodlzJNbTjTlttve6TRn18D8GUCyLVqGdhJCUtMzDycYN+93XTd7f1feZp/hIxX6piq9PFtUaeiCqCZEFiidPH3DuTKcs9wG0N8kXrNU0zk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=cQ72lJtLVFRHZE57Cqwk75YzxqADsC1pt0ENqj/Ife1pM40p4WJpswDMjBSwz5T4xZWgSWV8Hugof/PdUUqS9K0n726zsasKZpnf/IjKNtXwbVkwZj/Jc1riluzQuYgLTffCVi9tPNLJYs1TcFPer3B25iZm1hh97rjjygcf248= Received: by 10.150.198.14 with SMTP id v14mr382023ybf.65.1208363625590; Wed, 16 Apr 2008 09:33:45 -0700 (PDT) Received: by 10.150.11.16 with HTTP; Wed, 16 Apr 2008 09:33:45 -0700 (PDT) Message-ID: Date: Wed, 16 Apr 2008 09:33:45 -0700 From: "Dharma Wolford" To: freebsd-questions@freebsd.org In-Reply-To: <20080415235937.GB79279@demeter.hydra> MIME-Version: 1.0 References: <20080415231450.GF78906@demeter.hydra> <200804160131.23711.fbsd.questions@rachie.is-a-geek.net> <20080415235937.GB79279@demeter.hydra> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: determining what's in the base system 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: Wed, 16 Apr 2008 16:34:08 -0000 On Tue, Apr 15, 2008 at 4:59 PM, Chad Perrin wrote: > > That's more the sort of answer I was expecting, but seems less easily > employed than just using `which` to determine whether something's located > under /usr/local. > Hi, It just occurs to me to mention that "which" searches the user's PATH and reports back the first instance of the executable it finds. So you'd potentially get different results for different users on the same system, and it doesn't tell you that something isn't installed or located in more than one place, it just tells you where the *first* instance of it was found. You might say "which bash" and get a result of '/usr/bin/bash' ...and meanwhile there might also be '/usr/local/bin/bash' but it won't tell you that. The 'locate' command could be useful too, but it depends on how complete the locate database is. Anyway... take care, dharma