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
+8k Golang : Load DSA public key from file example
+29k Golang : Detect (OS) Operating System
+18.2k Golang : Qt image viewer example
+6.4k PHP : Get client IP address
+5.7k Clean up Visual Studio For Mac installation failed disk full problem
+13.5k CodeIgniter : "Fatal error: Cannot use object of type stdClass as array" message
+5.2k Golang : Calculate a pip value and distance to target profit example
+6.7k Golang : Spell checking with ispell example
+9.7k Android Studio : Indicate progression with ProgressBar example
+14.6k Golang : Find network of an IP address
+18.9k Unmarshal/Load CSV record into struct in Go
+6.9k Golang : Output or print out JSON stream/encoded data