last -x shutdown reboot

Category: VPS Management

last -x shutdown reboot

List server shutdown and reboot history

The last command reads the wtmp log of login sessions; -x includes system events, and filtering by the shutdown and reboot record types shows the box's restart history with timestamps. An unexpected reboot pattern here hints at crashes, kernel panics, or OOM-triggered resets. Check dmesg for the cause.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.