Check Linux Server Reboot Records
In Linux systems, there are several ways to view the server’s reboot records:
- To check the log files in the /var/log directory, use the following command to view the system’s reboot records.
cat /var/log/messages | grep "reboot"
- To view system startup information using the dmesg command:
You can use the following command to see information about system startup, including server reboot logs:
dmesg | grep "reboot"
- Check system login and reboot records using the last command. You can use this command to view user login and logout records, as well as system reboot records.
last
By using the above methods, you can view the server’s reboot history, which helps in understanding the system’s operation status.