Date of a FreeBSD installation
Chip Camden
sterling at camdensoftware.com
Fri Jan 14 15:32:20 UTC 2011
Quoth Carl Chave on Friday, 14 January 2011:
> > I'd suggest looking at the Btimes of top level directories
> >
> > stat -f "%SB %N" /*
>
> Or how about just / as this ~15 minutes earlier than most of the
> remaining top level directories
>
>
> sodserve# stat -f "%SB %N" /*
> Jan 9 04:54:21 2011 /COPYRIGHT
> Jan 9 04:54:21 2011 /bin
> Jan 9 04:54:21 2011 /boot
> Dec 31 18:59:59 1969 /dev
> Jan 9 04:54:21 2011 /etc
> Jan 9 04:54:21 2011 /lib
> Jan 9 04:54:21 2011 /libexec
> Jan 9 04:54:21 2011 /media
> Jan 9 04:54:21 2011 /mnt
> Jan 9 04:54:21 2011 /proc
> Jan 9 04:54:21 2011 /rescue
> Jan 9 04:54:21 2011 /root
> Jan 9 04:54:21 2011 /sbin
> Jan 9 04:54:21 2011 /sys
> Jan 9 04:48:39 2011 /tmp
> Jan 9 04:48:45 2011 /usr
> Jan 9 04:49:39 2011 /var
>
> sodserve# stat -f "%SB %N" /
> Jan 9 04:39:59 2011 /
For me, that gets the Nov 21 2009 date, which is earlier than my
install date.
So far, /etc/hostid and the /home symlink seem to be the winners.
--
Sterling (Chip) Camden | sterling at camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipsquips.com | http://chipstips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110114/541c67d1/attachment.pgp
More information about the freebsd-questions
mailing list