Unix/Linux : Get reboot history or check when was the last reboot date
Probably not some command that many people will look for unless you are a system administrator. Ok, so I need to find out when was the last time my instance, droplets, VPS, box rebooted.
To find out, simply issue this command :
> last reboot
reboot system boot 2.6.32-358.6.2.e Mon Mar 3 21:46 - 05:19 (97+06:32)
reboot system boot 2.6.32-358.6.2.e Mon Mar 3 21:30 - 21:46 (00:15)
reboot system boot 2.6.32-358.6.2.e Fri Feb 28 22:49 - 21:46 (2+22:56)
reboot system boot 2.6.32-358.6.2.e Fri Feb 28 22:47 - 21:46 (2+22:58)
hope this short tutorial can be useful to you.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+4.6k How to check with curl if my website or the asset is gzipped ?
+22.2k Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date
+2.8k Java : Random alphabets, alpha-numeric or numbers only string generator
+3.9k Unix/Linux : How to pipe/save output of a command to file?
+5.8k Golang : How to fix html/template : "somefile" is undefined error?
+17.1k Golang : How to get hour, minute, second from time?
+10.6k CodeIgniter : Import Linkedin data
+9.6k Golang : Get UDP client IP address and differentiate clients by port number
+10k Golang : Characters limiter example
+5.3k Golang : Test input string for unicode example
+13.7k nginx: [emerg] unknown directive "ssl"
+9.1k Fix ERROR 1045 (28000): Access denied for user 'root'@'ip-address' (using password: YES)