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
+12.7k Golang : Convert int(year) to time.Time type
+5.9k Golang : How to verify input is rune?
+19.8k Golang : Convert(cast) bytes.Buffer or bytes.NewBuffer type to io.Reader
+9.9k Golang : Setting variable value with ldflags
+5.6k Golang : Struct field tags and what is their purpose?
+9.6k Golang : Detect number of active displays and the display's resolution
+14.3k Golang : Find network of an IP address
+12.5k Golang : Send data to /dev/null a.k.a blackhole with ioutil.Discard
+6.4k Golang : Calculate diameter, circumference, area, sphere surface and volume
+28.6k Golang : Detect (OS) Operating System
+4.8k Google : Block or disable caching of your website content
+6.2k Unix/Linux : Use netstat to find out IP addresses served by your website server