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
Printable View
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!
Here are some related "last" commands. http://www.cyberciti.biz/tips/linux-...d-logfile.html
it is not actually about startups, but is still very useful, thanks :)