I want know the boot and shutdown date of my laptop on last friday:
===> last reboot
reboot system boot 4.4.0-47-generic Mon Nov 28 09:39 still running
reboot system boot 4.4.0-45-generic Fri Nov 25 09:40 - 15:55 (06:14)
According to this output the laptop was switched on from 9:40 to 15:55.
see this in my bash history. The shutdown times match:
===> history | grep 2016-11-25| tail
24911 2016-11-25 15:51:33 :... some command
But the start time does not:
===> history | grep 2016-11-25| head
24850 2016-11-25 08:58:35 :ssh somehost
24851 2016-11-25 08:47:01 :...
I think there is something wrong.
I checked my boot/shutdown times with a different tool the last 5 days, and this reveals: The output of last reboot
is wrong. Every day one hour is missing.
Do your time of last reboot
match?
Update, two years later, I found the solution: https://serverfault.com/a/958823/90324
last reboot