How to Check System Reboot History in Linux
Abstract: reboot system boot 3.10.0-862.14.4. Fri Nov 2 06reboot system boot 3.10.0-693.17.1. Tue Mar 20 12
Linux/Unix systems keep the details of the previous reboot. You may also need to know when the system was rebooted last.
Check Last Reboot HistoryMostly Linux/Unix systems provide the last command, which provides us the history of last logins and system reboots. These entries are keeps in the lastlog file. Run the last reboot command from the terminal, and you will get the details of the last reboots.
last reboot reboot system boot 3.10.0-957.1.3.e Thu Nov 28 06:14 - 11:56 (65+05:41) reboot system boot 3.10.0-957.1.3.e Tue Dec 4 03:51 - 06:14 (359+02:23) reboot system boot 3.10.0-862.14.4. Fri Nov 2 06:13 - 03:51 (31+21:38) reboot system boot 3.10.0-693.21.1. Sun Oct 21 06:13 - 06:13 (11+23:59) reboot system boot 3.10.0-693.21.1. Wed Mar 21 04:16 - 06:13 (214+01:57) reboot system boot 3.10.0-693.21.1. Tue Mar 20 15:39 - 04:16 (12:37) reboot system boot 3.10.0-693.21.1. Tue Mar 20 15:37 - 15:38 (00:01) reboot system boot 3.10.0-693.17.1. Tue Mar 20 12:32 - 15:38 (03:06)
The above output shows that the system was last rebooted on Nov 28 at 06:14 AM.
Check System UptimeAdditionally, you can also use the uptime command to find the system uptime from last booted. Just open the terminal on your system and type uptime and hit enter.
uptime 11:56:48 up 65 days, 5:42, 1 user, load average: 0.09, 0.11, 0.18
as per above output, the system is running from 65 days, 5 hours and 42 minutes.