power management - How to find out if computer was shut down at a given time? - Ask Ubuntu


on ubuntu (14/16) there anyway find out if computer running @ given time? (e.g. last night @ 10 pm if computer running or turned off)

last -x | less 

will show both shutdown , time of booting:

runlevel (to lvl 5)   3.19.0-71-generi mon oct 17 08:40 - 12:30 (4+03:50)    reboot   system boot  3.19.0-71-generi mon oct 17 08:39 - 12:30 (4+03:51)    shutdown system down  3.19.0-71-generi fri oct 14 17:02 - 08:39 (2+15:36)    {user}   :0           :0               fri oct 14 07:47 - down   (09:15)     runlevel (to lvl 5)   3.19.0-71-generi fri oct 14 07:47 - 17:02  (09:15)     reboot   system boot  3.19.0-71-generi fri oct 14 07:46 - 17:02  (09:15)    ... runlevel (to lvl 5)   3.19.0-69-generi mon oct 10 08:32 - 07:47 (3+23:14)    reboot   system boot  3.19.0-69-generi mon oct 10 08:31 - 17:02 (4+08:30)    shutdown system down  3.19.0-69-generi fri oct  7 16:49 - 08:31 (2+15:41)    

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User