I know that uptime prints the time a machine has been up and running, but is there an easier (reliable) way to get the date of the start up than counting down from this output?
I tried looking around /proc, but didn't find anything of relevance. There's also a line like this on my dmesg: [ 0.673492] rtc_cmos rtc_cmos: setting system clock to 2011-03-14 14:26:52 UTC (1300112812), but I'm wondering if this method is distribution and kernel version agnostic.
unreliable or hardaboutuptime? – Bobby Mar 28 '11 at 11:25uptimereturns a string like "up 13 days, 21:01", and you'd need to count it from that. – jho Mar 28 '11 at 11:29/proc/uptime. – Sam Hocevar Mar 28 '11 at 14:29