How to Check Linux System Reboot Date and Time

Question : How to check when was my linux system last rebooted and how long was the system running ?

Answer : The are several command to check last system rebooted.

1. Check last rebooted using “who -b” command :

[root@server ~]# who -b
         system boot  2014-08-16 09:34

2. Check last rebooted using “last reboot” command :

[root@server ~]# last reboot
reboot   system boot  2.6.32-431.el6.x Sat Aug 16 09:34 - 01:11  (15:36)
reboot   system boot  2.6.32-431.el6.x Tue Aug 12 19:39 - 00:13  (04:33)
reboot   system boot  2.6.32-431.el6.x Mon Aug 11 23:08 - 23:59  (00:50)
reboot   system boot  2.6.32-431.el6.x Tue Aug  5 11:47 - 05:41 (5+17:54)
reboot   system boot  2.6.32-431.el6.x Tue Aug  5 09:03 - 11:18  (02:15)
reboot   system boot  2.6.32-431.el6.x Tue Aug  5 08:58 - 09:03  (00:04)
reboot   system boot  2.6.32-431.el6.x Fri Jul 18 00:47 - 00:51  (00:04)
reboot   system boot  2.6.32-431.el6.x Sun Dec  8 11:22 - 11:23  (00:01)
reboot   system boot  2.6.32-431.el6.x Sun Dec  8 10:28 - 10:30  (00:01)
reboot   system boot  2.6.32-431.el6.x Sat Dec  7 21:54 - 22:40  (00:46)
reboot   system boot  2.6.32-431.el6.x Sat Dec  7 19:46 - 21:54  (02:08)

wtmp begins Sat Dec  7 19:46:12 2013

3. Check how long was the system running using “uptime” command :

[root@server ~]# uptime
 01:13:34 up 15:38,  1 user,  load average: 0.04, 0.08, 0.04

Use uptime command to deduce last reboot time. The uptime command will show the current time and how long the system was running