find date of last boot

Matthew Seaman m.seaman at infracaninophile.co.uk
Fri Jun 8 06:27:33 UTC 2012


On 08/06/2012 07:23, Chris Knipe wrote:
>> It's not that.  'last reboot' seems to be broken at the moment, at least
>> on stable/9:
> 
>> but last(1) isn't coming up with the goods:
>>
>> lucid-nonsense:~:% last reboot
>>
>> wtmp begins Fri Jun  1 06:14:46 BST 2012
> 
> last reads from /var/log/wtmp - which more than likely got rotated
> since your last reboot.

No.  Please read more carefully.

last(1) used to use /var/log/wtmp, but not on 9.x or above, which uses
/var/log/utx.log -- a different binary format, but basically the same
idea as wtmp.

And, no: as I showed, that file was not rotated since my last reboot.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120608/721bd6a0/signature-0001.pgp


More information about the freebsd-questions mailing list