find date of last boot

Karl Vogel vogelke+unix at
Fri Jun 8 02:47:52 UTC 2012

>> On Thu, 7 Jun 2012 21:35:19 -0400 (EDT), 
>> Chris Hill <chris at> said:

C> $ ls -l /var/run/dmesg.boot
C> -rw-r--r-- 1 root wheel 7248 Dec 26 2010 /var/run/dmesg.boot

   For the sake of completeness:

   me% stat -f %Sm /var/run/dmesg.boot
   Jan 10 14:56:45 2012

   me% ls -l -D '%d-%b-%Y %T' /var/run/dmesg.boot
   -rw-r--r--  1 root  wheel  6319 10-Jan-2012 14:56:45 /var/run/dmesg.boot

Karl Vogel                      I don't speak for the USAF or my company

Dirt and grease under the fingernails is a social no-no, as they tend to
detract from a woman's jewelry and alter the taste of finger foods.
                           --Martha Stewart's hygiene tips for Rednecks

More information about the freebsd-questions mailing list