Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

Everyone knows that command uptime shows running time of Linux machine. Is there a similar command for sleep and/or hibernate mode? To be clear: I want to know wake up time of my system.

share|improve this question

marked as duplicate by Simon, Brad Patton, Dave M, Karan, 8088 Apr 25 '13 at 16:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 2 down vote accepted

Possible Duplicate:
How to find the uptime since last wake from standby

Top Answer:
"In /var/log/pm-suspend.log, look for the last line looking like this one:

Sun Dec 16 09:30:31 CET 2012: Awake. That's your last wakeup time. You can calculate your uptime since then the way Paul suggested."

share|improve this answer
Nice hint. But is there more simple way like one short command? Otherwise i'll need to write parsing script... – Aleksandr Kravets Apr 25 '13 at 8:55
Unfortunately there is no short command that I know of. A quick parsing script that does the calculation for you put in the path might be the simplest way if you need to look this up frequently. Alternatively, as the other question mentioned, if you are scripting your sleep/hibernate you could output to a log file that is more easily read. Depends on your implementation. – Will.Beninger Apr 25 '13 at 9:20
OK, thanks a lot – Aleksandr Kravets Apr 25 '13 at 9:33
Eh, is that the new way to comment and flag? – phresnel Jul 9 '15 at 6:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.