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
+21.5k Golang : Use TLS version 1.2 and enforce server security configuration over client
+6.3k Elasticsearch : Shutdown a local node
+12.3k Golang : Add ASCII art to command line application launching process
+21.6k Golang : Join arrays or slices example
+29k Golang : Save map/struct to JSON or XML file
+5.6k Cash Flow : 50 days to pay your credit card debt
+8.1k Golang : Implementing class(object-oriented programming style)
+9.8k CodeIgniter : Load different view for mobile devices
+19k Golang : Execute shell command
+31.1k Golang : Get local IP and MAC address
+8.1k Useful methods to access blocked websites
+5.9k Golang : Convert Chinese UTF8 characters to Pin Yin