From owner-freebsd-questions Wed Jan 17 12:24: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (unknown [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 551EF37B401 for ; Wed, 17 Jan 2001 12:23:44 -0800 (PST) Received: from mail.iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f0HKLQ723406; Wed, 17 Jan 2001 15:21:27 -0500 (EST) Message-ID: <3A65FE99.3B68D7B0@mail.iowna.com> Date: Wed, 17 Jan 2001 15:20:41 -0500 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Justin C. Sherrill" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: source to a command References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "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? First, you'll have to have installed the source distro. By default, sys sources are in /usr/src. There are subdirectories below that. I usually end up doing a "find /usr/src -name script -print" because I'm seldom sure what category the program fits into (whether it's GNU or tools or what) With a little more knowledge of the source tree you'd be able to find what you're looking for quickly, but this info should get you there reasonably fast. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message