How to Check the Linux Last Reboot Date and Time

Checking the last reboot date and time of your Linux system is a common administrative task. Fortunately, we can easily find this information using built-in commands like who and last.

Check Last Reboot Using the who Command

We can use the who command with the -b flag to quickly check the Linux last reboot date and time. Root privileges are not necessary to perform this check.

$ who -b
system boot  2020-08-29 06:39

Check Previous System Reboots Using the last Command

If you want to check the date and time of all previous Linux system reboots, we can use the last reboot command. This command retrieves the reboot history information from the /var/log/wtmp file.

$ last reboot
reboot   system boot  4.15.0-117-gener Mon Sep 14 16:54   still running
reboot   system boot  4.15.0-117-gener Mon Sep 14 16:51 - 16:54  (00:02)
reboot   system boot  4.15.0-117-gener Mon Sep 14 16:49 - 16:51  (00:01)

wtmp begins Mon Sep  7 04:31:42 2020

By utilising these simple commands, you can keep track of your system’s uptime and recent reboots effortlessly.

Leave a Reply

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