Time stamp of last boot

I have been trying to determine the best way to get a full timestamp for the last time of system startup (in Terminal.)

I pulled the timestamp from

“ls -1lnUT /var/run/utmpx”

Is there a better method, or, is there a situation where this method would not work?

Thank you in advance.

Posted on Sep 7, 2017 12:02 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 7, 2017 2:26 PM

Your example appears to report the same time:


iMac06:~ john$ who -b

reboot ~ Sep 2 15:49

iMac06:~ john$ ls -1lnUT /var/run/utmpx

-rw-r--r--@ 1 0 1 4396 Sep 2 15:49:34 2017 /var/run/utmpx

iMac06:~ john$

6 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Time stamp of last boot

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.