How to Check System Last Reboot in Linux

In Linux/Unix sometimes you have to check system last reboot to see what really happened. How to Check System Last Reboot in Linux

Check Last Reboot

Mostly Linux/Unix systems provide the last command, which provides us the history of last logins and system reboots. Run last reboot command from the terminal, and you will get the details of last reboots.

$ last reboot 

reboot   system boot  2.6.18-92.el5    Sat Feb 11 12:00         (12+22:51)
reboot   system boot  2.6.18-92.el5    Sun Feb  5 12:57         (5+21:17)
reboot   system boot  2.6.18-92.el5    Sat Jan 28 15:58         (13+18:16)
reboot   system boot  2.6.18-92.el5    Thu Jan 26 17:15         (15+17:00)
reboot   system boot  2.6.18-92.el5    Mon Jan  9 13:40         (32+20:35)
reboot   system boot  2.6.18-92.el5    Sun Jan  8 15:50         (33+18:24)
reboot   system boot  2.6.18-92.el5    Sat Dec 24 12:58         (48+21:17)

The above output shows that the system was last rebooted on Feb 11 at 12:00 PM.

Check System Uptime

Additionally, you can also use uptime command to find the system uptime from last booted. Just open the terminal on your system and type uptime and hit enter.

$ uptime 
 
10:57:54 up 18 days, 21:57,  2 users,  load average: 0.00, 0.00, 0.00

The system is running from 1 days, 21 hours and 57 minutes.

Leave a Reply

Your email address will not be published. Required fields are marked *