I'm a Rails developer working on a web application on Ubuntu Server 10.04. Due to internal requirements, I was asked to find the last 10 system boot and shutdown times... I have no clue where to find these details. Could someone help me out?
Asked
Active
Viewed 3.5k times
2 Answers
51
-
great answer, I add | tail -10 – enzotib Apr 26 '11 at 19:05
-
1I have no `/etc/default/bootlogd` on my Ubuntu 16.04.2 – Vadim Kotov Oct 24 '17 at 14:58
-
More on [how to enable bootlogd](https://wiki.debian.org/bootlogd), which is not necessary as of Debian Wheezy ([i.e. as of Ubuntu 11.10](https://askubuntu.com/questions/445487/what-debian-version-are-the-different-ubuntu-versions-based-on) -- or so seems likely). – mathandy Feb 17 '18 at 00:24
2
For a GUI method you can use hardinfo as described here: Does Ubuntu have a "device manager" equivalent? And what is an easy way to access USB drives?.
Under the section Boots you will see this:
Installation is straight forward using:
sudo apt install hardinfo
WinEunuuchs2Unix
- 99,709
- 34
- 237
- 401
-
-
@VadimKotov When you type `hardinfo` from the command line do you see errors as in this bug report? https://bugs.launchpad.net/ubuntu/+source/hardinfo/+bug/1473142 – WinEunuuchs2Unix Feb 03 '20 at 11:40
-
Nope, it displays only this: `Gtk-Message: 17:54:10.696: Failed to load module "canberra-gtk-module"` – Vadim Kotov Feb 03 '20 at 14:55
