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
+20.4k Golang : Convert date string to variants of time.Time type examples
+6.8k Golang : Levenshtein distance example
+11.4k Golang : Secure file deletion with wipe example
+35.1k Golang : Integer is between a range
+10.6k Golang : Natural string sorting example
+21.4k Golang : Upload big file (larger than 100MB) to AWS S3 with multipart upload
+12k Golang : Simple client-server HMAC authentication without SSL example
+13.6k Golang : How to check if a file is hidden?
+10.4k Golang : Underscore string example
+5.5k Golang : Struct field tags and what is their purpose?
+11.8k Golang : Perform sanity checks on filename example
+10.2k Golang : Generate 403 Forbidden to protect a page or prevent indexing by search engine