From owner-freebsd-questions Wed Jan 17 14:59:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from changeofhabit.mr.itd.umich.edu (changeofhabit.mr.itd.umich.edu [141.211.144.17]) by hub.freebsd.org (Postfix) with ESMTP id D843F37B400 for ; Wed, 17 Jan 2001 14:59:14 -0800 (PST) Received: from tim.elnsng1.mi.home.com (c1129767-a.elnsng1.mi.home.com [24.183.248.20]) by changeofhabit.mr.itd.umich.edu (8.9.3/3.2r) with SMTP id RAA22856; Wed, 17 Jan 2001 17:59:12 -0500 (EST) From: Tim McMillen To: "Justin C. Sherrill" , Subject: Re: source to a command Date: Wed, 17 Jan 2001 18:03:09 -0500 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01011718030904.01408@tim.elnsng1.mi.home.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You'll want to read man hier and man locate at the bottom of the locate manpage is a script to update the database. Run that and then you can use locate as a very quick find. Then finding the source is as easy as for example: %locate ln.c and it will tell you the path to the source for ln It may lead you astray a few times and you'll have to use `| more` to wade through the output, but it will work. Tim On Wednesday January 17, 2001 15:05, Justin C. Sherrill wrote: > If I want to find the source to a program that isn't in ports but in > the base distribution (in this case, the 'script' command), where > could I look? > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message