[olug] Uptime to boot date

Dave Hull dphull at insipid.com
Tue Oct 29 17:42:25 UTC 2002


On Tue, 29 Oct 2002, Dave Hull wrote:

> Hm, not sure how to do that, but you could use this:
> 
> [~]$ last | grep -i boot

Come to think of it, this won't do you any good if you're logs are rotated out 
before your server is rebooted. If you've got /var/log/dmesg, you could check 
the date of that file to get a close approximation of the last boot time.

Good luck.

-- 
Dave Hull
http://insipid.com

He who despises himself nevertheless esteems himself as a self-despiser.
		-- Friedrich Nietzsche





More information about the OLUG mailing list