From owner-freebsd-questions Fri Dec 1 19:54:53 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA16941 for questions-outgoing; Fri, 1 Dec 1995 19:54:53 -0800 Received: from chemserv.umd.edu (chemserv.umd.edu [129.2.64.40]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA16935 for ; Fri, 1 Dec 1995 19:54:39 -0800 Received: from espresso.eng.umd.edu (espresso.eng.umd.edu [129.2.98.13]) by chemserv.umd.edu (8.7.2/8.7) with ESMTP id WAA01817; Fri, 1 Dec 1995 22:54:34 -0500 (EST) Received: (chuckr@localhost) by espresso.eng.umd.edu (8.7.2/8.6.4) id WAA15569; Fri, 1 Dec 1995 22:54:33 -0500 (EST) Date: Fri, 1 Dec 1995 22:54:32 -0500 (EST) From: Chuck Robey X-Sender: chuckr@espresso.eng.umd.edu To: Alexei Nikolaevich Romanov cc: freebsd-questions@freebsd.org Subject: Re: Yet another quickie.. In-Reply-To: <199511300048.AAA00516@albion.loach.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Thu, 30 Nov 1995, Alexei Nikolaevich Romanov wrote: > I busted my 2.0.5R cat binary, in futzing around with adding a new disk last > night. :) How I managed to do this is a long story. All that aside...where > is the source code to 'cat' located in the tree, which I'd presumed I'd > installed (everything else seems to be there), and, is there a faster and more > efficient way of locating that source that I have missed out on, in my eagerness > for actual functionality. :) > Normally, you do a 'which cat' and it says: /bin/cat then you'd know, if the command was in bin, the source would be in /usr/src/bin, but if you've blown it away, this wouldn't work. In that case, I'd do 'locate cat| grep usr/src |more and inspect the output for something likely looking, like: /usr/src/bin/cat of course, a lot more than that will spew out, but you shouldn't have trouble ignoring things like: /usr/src/lib/libc/sys/ftruncate.c ^^^ > --Thank you! > > Alexei > ============================================================================ Chuck Robey chuckr@eng.umd.edu -- I run FreeBSD on n3lxx and Journey2 --------------------------------------------------------------------------- The Dilbert Zone is Dilbert's new WWW home! The area features never-before-seen original sketches of Dilbert, a photo tour of Scott Adams' studio, Dilbert Trivia and memorabilia, high school photos and much more!: