Tuesday 2 October 2012

Mac OS X -- Get Battery Cycle Count in Command Line

Honestly, I don't know if this would work the same for everyone, but it does the job pretty well for me.

So straight to the point -- if you wanted to see how many discharge cycles the battery of your MacBook has completed, there is an easy way to do this from the UI. Just go to Utilities -> System Information -> Power and locate the Cycle Count entry in the right pane. Mission Completed.

Easy enough, isn't it.
Nah.

If you're like me, there is an easier way.
In the Terminal, type:

ioreg -l | grep Cycle

This is it. As you can see, it also displays other useful data about the battery such as voltage.