![Forrest logo](/images/logo.png)
last:tldr:30795
The command "last shutdown" is used to view the details of the previous system shutdown event. It shows information about when the system was last shut down, who initiated the shutdown, and other related information.
When you execute the command "last shutdown" in the terminal or command prompt, it retrieves the system's log files and displays the relevant information about the previous system shutdown.
The output of the command typically includes details such as the date and time of the shutdown, the user who initiated the shutdown, the method used to shut down the system (e.g., via GUI, terminal, or other means), and any relevant notes or comments associated with the shutdown event.
This command is useful for troubleshooting, analyzing system behavior, and tracking system uptime. It helps to identify any irregularities or potential issues that may have occurred during the previous shutdown.