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
+5.2k PHP : Proper way to get UTF-8 character or string length
+16.5k Golang : Simple client server example
+19.5k Golang : Create and resolve(read) symbolic links
+12.8k Golang : ROT47 (Caesar cipher by 47 characters) example
+7.8k Golang : Find the length of big.Int variable example
+11.5k Golang : Drop cookie to visitor's browser and http.SetCookie() example
+19.5k Golang : How to read float value from standard input ?
+6.7k Golang : Scan files for certain pattern and rename part of the files
+4.2k PHP : See installed compiled-in-modules
+13k Golang : Overwrite previous output with count down timer
+35k Golang : Convert date or time stamp from string to time.Time type
+4.9k Golang : Get Hokkien(福建话)/Min-nan(閩南語) Pronounciations