How to Check Linux System Reboot Date and Time

As a Linux system administrator, it is essential to know when your system was last rebooted. This information can be useful for troubleshooting and maintenance purposes.

In this tutorial, we will go through the steps to check the Linux system reboot date and time using the “who -b”, “last reboot”, and “uptime” commands.

Step 1: Check System Reboot Date and Time Using “who -b”

The “who -b” command displays the system’s last boot time. To use this command, open a terminal and type the following command:

who -b

The output will show the date and time when the system was last booted.

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

Step 2: Check System Reboot Date and Time Using “last reboot”

The “last reboot” command shows the history of system reboots. To use this command, open a terminal and type the following command:

last reboot

The output will display the reboot history, including the date and time of the last system reboot.

[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

Step 3: Check System Uptime

The “uptime” command shows how long the system has been running since the last reboot. To use this command, open a terminal and type the following command:

uptime

The output will display the system’s uptime in days, hours, minutes, and seconds.

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

Commands Mentioned:

  • who -b – a command that displays the system’s last boot time.
  • last reboot – a command that shows the history of system reboots.
  • uptime – a command that shows how long the system has been running since the last reboot.
See also  How to Install Nginx Web Server on CentOS 6.3

Conclusion:

In this guide, we have outlined the steps to check the Linux system reboot date and time using the “who -b”, “last reboot”, and “uptime” commands. By using these commands, you can easily obtain the necessary information about system reboots for maintenance and troubleshooting purposes. If you have any questions or suggestions, feel free to comment below.

Comments

Leave a Reply

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