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
+15.4k CodeIgniter/PHP : Create directory if does not exist example
+7.6k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
+11.4k Golang : Get absolute path to binary for os.Exec function with exec.LookPath
+7.1k Golang : Emulate NumPy way of creating matrix example
+4.4k Python : Delay with time.sleep() function example
+3.5k Javascript : How to show different content with noscript?
+12k Golang : Linear algebra and matrix calculation example
+4.7k Javascript : How to refresh page with JQuery ?
+10k Golang : Concatenate (combine) buffer data example
+5.9k Golang : Normalize email to prevent multiple signups example
+11.6k Golang : Drop cookie to visitor's browser and http.SetCookie() example
+7.5k Golang : How to capture return values from goroutines?