Gentoo Archives: gentoo-user

From: "John J. Foster" <Gentoo-User@××××××××××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Previous system uptime - not Gentoo specific
Date: Thu, 13 May 2010 23:18:55
Message-Id: 20100513231808.GC4061@magpie.local
In Reply to: Re: [gentoo-user] Previous system uptime - not Gentoo specific by Alex Schuster
1 On Fri, May 14, 2010 at 01:02:01AM +0200, Alex Schuster wrote:
2 > John J. Foster writes:
3 >
4 > > I lost utility power for 2 hours today while at work (on my home
5 > > machine). UPS probably help for 20 minutes, or so. Just out of
6 > > curiousity, is there a way to determine previous system uptime. I know
7 > > I was getting close to 11 months, which would be a record for me.
8 >
9 > The system logs boot and login dates in /var/log/wtmp, the last command
10 > shows the content of this binary file.
11 >
12 > last | grep "system boot" | head
13 >
14 > Hope you broke the record,
15 > Wonko
16 >
17 festus@localhost ~ $ last | grep "system boot"
18 reboot system boot 2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 (00:51)
19
20 OK, so after looking at "man last", I tried
21
22 festus@localhost ~ $ last reboot
23 reboot system boot 2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 (00:51)
24
25 wtmp begins Sat May 1 08:23:36 2010
26
27 which doesn't really help much.
28
29 Any other ideas,
30 festus
31 --
32 It is not unusual for those at the wrong end of the club to have a
33 clearer picture of reality than those who wield it.
34 Noam Chomsky

Replies

Subject Author
Re: [gentoo-user] Previous system uptime - not Gentoo specific "John J. Foster" <Gentoo-User@××××××××××××××××××××××.org>
Re: [gentoo-user] Previous system uptime - not Gentoo specific Alex Schuster <wonko@×××××××××.org>