Linux command to get last reboot details


Last command to show who has recently used the server and logged in and out date/time.
last -x|grep reboot
or
last reboot

For first 5 results
last -x|grep reboot | head -n 5


Leave a Reply