Forrest logo
back to the last tool

last:tldr:e33c5

last: View all recorded reboots (i.e., the last logins of the pseudo user "reboot").
$ last reboot
try on your machine

The command "last reboot" is used in Unix-like operating systems, such as Linux, to display information about the system's previous reboot.

When you run "last reboot" in the terminal, it generates a log of the most recent system reboots. It provides details such as the date and time of the reboot, as well as the duration since the system last started.

Here is an example output of the "last reboot" command:

reboot   system boot  5.4.0-26-generic Sun May 31 14:25   still running
reboot   system boot  5.4.0-26-generic Sun May 31 12:00 - 14:25  (02:24)

In this example, it shows that the system last rebooted on May 31 at 14:25 and has been running since then. It also logs the previous reboot that occurred on May 31 from 12:00 to 14:25, with a duration of 2 hours and 24 minutes.

The "last reboot" command is useful for system administrators and users who want to check the history of system restarts, track uptime, or troubleshoot any issues related to system reboots.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the last tool