How do I find the last logged system boot and shutdown times?

July 9, 2021 . 1 MIN READ

Use the last command.

last -x | grep shutdown

last -x | grep reboot

You can pipe this to the tail to read the last n instances. For example, in your case:

last -x | grep shutdown | tail -n 10

 

Leave a Reply

Your email address will not be published. Required fields are marked *