From owner-freebsd-hackers Sun May 12 12:54:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id B1EEF37B407 for ; Sun, 12 May 2002 12:54:18 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.3) id g4CJsFvM076423; Sun, 12 May 2002 14:54:15 -0500 (CDT) (envelope-from dan) Date: Sun, 12 May 2002 14:54:15 -0500 From: Dan Nelson To: Aaron Angel Cc: hackers@FreeBSD.ORG Subject: Re: uptime source code Message-ID: <20020512195415.GE3879@dan.emsphone.com> References: <20020512143522.A99703@transa.infoarc.sodaknet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020512143522.A99703@transa.infoarc.sodaknet.com> User-Agent: Mutt/1.3.99i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (May 12), Aaron Angel said: > I got around to looking through the source and such, and noticed I > can't seem to find the source to uptime...what distribution is it in > on the CDROM? $ whereis uptime uptime: /usr/bin/uptime /usr/share/man/man1/uptime.1.gz $ ls -l /usr/bin/uptime -r-xr-xr-x 2 root wheel 15671 Feb 14 13:54 /usr/bin/uptime* $ l -li /usr/bin/uptime 519301 -r-xr-xr-x 2 root wheel 15671 Feb 14 13:54 /usr/bin/uptime* $ find /usr/bin -inum 519301 /usr/bin/w /usr/bin/uptime $ whereis w w: /usr/bin/w /usr/share/man/man1/w.1.gz /usr/src/usr.bin/w $ uptime is actually w, and the source to w is in /usr/src/usr.bin/w . -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message