Scenario / Question:
How do I find out the last reboot or shutdown time and date of a linux system.
Solution / Answer:
The utility called LAST will provide the last reboot or shutdown time and date, and also list the sessions of users logged in at a specific date and time.
There are actually two ways of displaying the last system boot.
Using the WHO command and the “-b” option:
$ who -b system boot 2009-01-22 10:33
Using the LAST command will show the last reboot and the last logged in users, with time and date:
$ last reboot wtmp begins Mon Feb 2 12:59:22 2009
Using the LAST command to show last shutdown time and date:
$ last shutdown wtmp begins Mon Feb 2 12:59:22 2009