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.8k Golang : convert rune to unicode hexadecimal value and back to rune character
+47k Golang : Upload file from web browser to server
+5k Golang : Generate multiplication table from an integer example
+35.1k Golang : Convert date or time stamp from string to time.Time type
+11.9k Android Studio : Password input and reveal password example
+37.7k Golang : How to read CSV file
+21k Golang : Read directory content with filepath.Walk()
+17.8k Golang : How to make function callback or pass value from function as parameter?
+6.5k Golang : Individual and total number of words counter example
+19.3k PHP : Convert(cast) int to double/float
+17.2k Golang : Logging with logrus
+14.6k Golang : Read large file with bufio.Scanner cause token too long error