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
+26.5k Golang : Find files by extension
+12.4k Android Studio : Highlight ImageButton when pressed on example
+16.2k Golang : Check if a string contains multiple sub-strings in []string?
+12.2k Golang : "https://" not allowed in import path
+20.3k Golang : Secure(TLS) connection between server and client
+5.5k Unix/Linux/MacOSx : Get local IP address
+19.6k Golang : How to get time from unix nano example
+8.5k Golang : On lambda, anonymous, inline functions and function literals
+9.3k Golang : Extract or copy items from map based on value
+4.9k Golang : Issue HTTP commands to server and port example
+6.4k Golang : Warp text string by number of characters or runes example
+20.9k Golang : Sort and reverse sort a slice of strings