Sharing Knowledge | System Admin Articles

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.





Labels: Linux, Tips

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

2 Comments for "Find out Last reboot / shutdown time in Linux - Quick HOWTO"

Nice Blog..Great ..its really very usefull

THanks a ton

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..!

Back To Top