That should be a quick one:
I'm running a small server, and one day discovered, that one of the LXC containers inside is down. I started it again, but I want to find out, for how long it was down.
I guess, that the most detailed information will be in dmesg logs, but to read timestamps in them I need to know exact moment the system was started during that session.
You can
/proc/uptime
for this, the first number there is the uptime of the machine in seconds. Also, there'sdmesg -T
for human readable output.