Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2002 14:54:15 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Aaron Angel <aangel@transa.infoarc.sodaknet.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: uptime source code
Message-ID:  <20020512195415.GE3879@dan.emsphone.com>
In-Reply-To: <20020512143522.A99703@transa.infoarc.sodaknet.com>
References:  <20020512143522.A99703@transa.infoarc.sodaknet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020512195415.GE3879>