From owner-freebsd-questions Fri Feb 15 23:37:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 8BF0837B402 for ; Fri, 15 Feb 2002 23:37:21 -0800 (PST) Received: from [212.238.194.207] (helo=mailhost.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16bzPM-0002OS-00 for questions@freebsd.org; Sat, 16 Feb 2002 07:37:20 +0000 Received: from angel.raggedclown.net (angel.raggedclown.intra [192.168.1.7]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [buffy]) with ESMTP id A745513040 for ; Sat, 16 Feb 2002 08:37:19 +0100 (CET) Received: by angel.raggedclown.net (Ragged Clown Host [angel], from userid 1001) id 51D3B225BC; Sat, 16 Feb 2002 08:37:19 +0100 (CET) Date: Sat, 16 Feb 2002 08:37:19 +0100 From: Cliff Sarginson To: questions@freebsd.org Subject: Re: where to find source code? Message-ID: <20020216073719.GB4963@raggedclown.net> References: <121286229@toto.iv> <15469.45524.672665.399314@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15469.45524.672665.399314@guru.mired.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 15, 2002 at 07:11:48PM -0600, Mike Meyer wrote: > m types: > > Hi. I want to find the source code of a command. Where? How? I tried > > looking in the SRC of the 4.5 release in ftp.freebsd.org, but you know what > > is there. I want just the source code of basename. Is there any easy way to > > find it or extract it? Thanks. > > I know, you had the location - and the source - pointed out to you. > > The general solution is whereis: > > guru% whereis basename > basename: /usr/bin/basename /usr/share/man/man1/basename.1.gz /usr/src/usr.bin/basename > Yup, that is a better generic answer mike :) But I had just eaten my last braeburn apple of the day and was feeling kindly disposed before I went to bed :) -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message