On Thu, May 13, 2010 at 05:18:08PM -0600, John J. Foster wrote: > On Fri, May 14, 2010 at 01:02:01AM +0200, Alex Schuster wrote: > > John J. Foster writes: > > > > > I lost utility power for 2 hours today while at work (on my home > > > machine). UPS probably help for 20 minutes, or so. Just out of > > > curiousity, is there a way to determine previous system uptime. I know > > > I was getting close to 11 months, which would be a record for me. > > > > The system logs boot and login dates in /var/log/wtmp, the last command > > shows the content of this binary file. > > > > last | grep "system boot" | head > > > > Hope you broke the record, > > Wonko > > > fes...@localhost ~ $ last | grep "system boot" > reboot system boot 2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 (00:51) > > OK, so after looking at "man last", I tried > > fes...@localhost ~ $ last reboot > reboot system boot 2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 (00:51) > > wtmp begins Sat May 1 08:23:36 2010 > > which doesn't really help much. > > Any other ideas, > festus
Damn - log-rotate cleans wtmp monthly > -- > It is not unusual for those at the wrong end of the club to have a > clearer picture of reality than those who wield it. > Noam Chomsky -- It is not unusual for those at the wrong end of the club to have a clearer picture of reality than those who wield it. Noam Chomsky
pgpC7eePbIwir.pgp
Description: PGP signature