Find out Last reboot / shutdown time in Linux - Quick HOWTO

How do you find out the last reboot or shutdown time and date of a Linux server?

Here is the method:
There are actually three ways of displaying the last system boot.

The command called LAST will provide the last reboot or shutdown time and date.

Using the LAST command to show last shutdown/reboot time and date:

# last reboot
 wtmp begins Fri Apr  15 12:39:32 2011

# last shutdown
 wtmp begins Fri Apr 15 12:39:32 2011

The LAST command also lists the sessions of users logged in at a specific date and time as well.

Using the WHO command and the “-b” option:

$ who -b
 system boot  2011-04-15 12:39

You can also use "uptime" command to know the server uptime.

Share this

Related Posts

Next Post »


Write comments
June 27, 2011 at 5:05 PM delete

Nice Blog..Great ..its really very usefull

THanks a ton

March 28, 2012 at 5:59 AM delete

How can I check which user use sude command last time and restart or shutdown system


What do you think about this Article? Add your Opinion..! EmoticonEmoticon