When Did I Last Reboot My Linux Box?

For any number of reasons, including bragging rights, you may want to know when you last rebooted your Linux computers. It’s actually pretty easy and I’ll show you how.

Crack open your terminal emulator, CTRL + ALT + T will often do it, and enter the following:

What will tell you when you last rebooted, who booted (system), the kernel used, date and time, and how long the system was up for.

For example:

If you want to see the three most recent boots, you could just use the ‘head’ command.

You can even use grep to see how many times you rebooted in a month, for example:

And there you have it. It’s much easier than you might think.

Smash a Button
[Total: 2 Average: 4.5]
About Me: I'm just some retired dude with a little bit more free time on my hands. If you want to support the site, why not help yourself out too by ordering some inexpensive web hosting so that you can start your own site?