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.9k Which content-type(MIME type) to use for JSON data
+9.4k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
+11.7k Golang : Simple file scaning and remove virus example
+5.3k Golang : Issue HTTP commands to server and port example
+13.2k Golang : Calculate elapsed years or months since a date
+6.7k Golang : Convert an executable file into []byte example
+22.9k Golang : Set and Get HTTP request headers example
+19.9k Golang : Archive directory with tar and gzip
+20.6k Golang : Determine if directory is empty with os.File.Readdir() function
+8k Golang : Example of how to detect which type of script a word belongs to
+41.1k Golang : How to check if a string contains another sub-string?
+20.8k Golang : Saving private and public key to files