SyntaxHighlighter

Tuesday, June 9, 2020

When did I start my Mac

Sometimes I wonder when I started my work day, typically when I set up my laptop at the office. There is a command for this!

pmset -g log | grep 'Display is turned on' | tail
pmset -g log | grep 'Wake from Normal' | tail

You can try either one, and get some output like this:

2020-06-09 07:47:49 -0400 Notification         Display is turned on                      
2020-06-09 07:48:56 -0400 Notification         Display is turned on                      
2020-06-09 08:39:29 -0400 Notification         Display is turned on                      
2020-06-09 08:46:16 -0400 Notification         Display is turned on 

A short list of useful activity with the time of day.  Yay!