Date: Wed, 17 Jan 2001 18:03:09 -0500 From: Tim McMillen <timcm@umich.edu> To: "Justin C. Sherrill" <jsherri1@rochester.rr.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: source to a command Message-ID: <01011718030904.01408@tim.elnsng1.mi.home.com> In-Reply-To: <NEBBJLILOLHNMIMECELPGEIMCLAA.jsherri1@rochester.rr.com> References: <NEBBJLILOLHNMIMECELPGEIMCLAA.jsherri1@rochester.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01011718030904.01408>