[DC LoCo] Linux command line question: when has my computer restarted?

Dan Chen seven.steps at gmail.com
Wed Aug 10 16:14:47 UTC 2011


On Wed, Aug 10, 2011 at 11:28, Greg Reagle <reagle at cepr.net> wrote:
> Hi everyone.  I'd like to see at what times a computer has restarted and/or
> shut down.  I know that uptime will give me the the most recent time, but
> I'd like to go back further.

See `last reboot'.

> The computer in question is a hosted virtual web server.It is definitely
> Linux, but I cannot figure out the distribution (yet).

Certain files in /etc are hints: /etc/*_release or /etc/*_version. A
more current distribution likely has `lsb_release', too.

Cheers,
-Dan



More information about the Ubuntu-us-dc mailing list