ac charger information macbook pro last 24 hours terminal

how to know the ac charger connected information macbook pro in last 24 hours via terminal

MacBook Pro 13″, macOS 10.15

Posted on Jul 11, 2021 7:39 PM

Reply
3 replies

Jul 12, 2021 8:02 AM in response to mani2care

It would help to know what you are trying to do or what information you are looking for here.


You can use the following command which will display the battery/charging information about every minute until you quit the command. You can also store a copy of the information into a text file since the Terminal window will only retain a very small part of the output. My example allows you to view the information in the Terminal window as well saving the information into a text file on the Desktop.

pmset  -g  rawlog  |  tee  -a  ~/Desktop/battery-charging-log.txt


Not sure if this is what you are looking for. There are other options for the "pmset" command which you can review for yourself.

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.

ac charger information macbook pro last 24 hours terminal

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