From owner-freebsd-questions Fri Feb 15 17:11:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id F101137B405 for ; Fri, 15 Feb 2002 17:11:52 -0800 (PST) Received: (qmail 4014 invoked by uid 100); 16 Feb 2002 01:11:49 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15469.45524.672665.399314@guru.mired.org> Date: Fri, 15 Feb 2002 19:11:48 -0600 To: "m" Cc: questions@freebsd.org Subject: Re: where to find source code? In-Reply-To: <121286229@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 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 http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message