Hi everyone.
I wonder if it is possible to list let's say last 10 machine startup dates and times somehow, are there any kernel logs which I could parse to get them? Any advice welcome, thanks
Hi everyone.
I wonder if it is possible to list let's say last 10 machine startup dates and times somehow, are there any kernel logs which I could parse to get them? Any advice welcome, thanks
the command 'last' will show you a list of last logged in users,
'last reboot' will give you the reboot times. I only get two when I use that command. I don't know how to get any more than that.
'last' parses the file /var/log/wtmp. There may be a /var/log/wtmp.1 which should be older and may have more boot times in it.
Aha! 'last reboot -f /var/log/wtmp.1' on my system shows the last 15 reboots!
Last edited by pbrane; October 9th, 2012 at 09:48 PM.
Here are some related "last" commands. http://www.cyberciti.biz/tips/linux-...d-logfile.html
"Our intention creates our reality. "
Ubuntu Documentation Search: Popular Pages
Ubuntu: Security Basics
Ubuntu: Flavors
it is not actually about startups, but is still very useful, thanks
Last edited by arcull; October 10th, 2012 at 05:48 AM.
Regards, David.
Please use the Forum search and Wiki search for immediate help
Please mark your thread as Solved when appropriate
New to technical forums?: How To Ask Questions The Smart Way
Bookmarks