How to Check Battery Capacity & Cycle Count from Command Line on Mac

How to Check Battery Capacity & Cycle Count from Command Line on Mac.

Mac Terminal iconMac Terminal icon

Most Mac customers will probably see battery stats within the menu bar of MacOS, and head to System Information to analyze cycle rely, however some customers who spend plenty of time on the command line could discover it helpful to have the ability to retrieve battery data from the Terminal.

One technique to discover battery life data is with the pmset command, however one other method makes use of the ioreg command, which is what we’ll cowl right here. By using ioreg, we are going to retrieve the present battery capability, most battery capability, and the cycle rely of the battery on the Mac as properly.

How to Get Battery Capacity & Cycle Count from Mac Command Line

From the Terminal, enter the next command string:

ioreg -l| grep -e "CurrentCapacity" -e "MaxCapacity" -e "CycleCount"

You will see one thing like this reported back:

"CurrentCapacity" = 97
"MaxCapacity" = 100
"CycleCount" = 54

Where, PresentCapacity is the present battery cost, MaxCapacity is the utmost battery capability, and CycleCount is the variety of cycles the battery has up till this level.

Again, there are different methods to get battery data on the Mac, together with using the GUI which is rather more person pleasant to the typical Mac person, and the pmset command method is perhaps simpler too, nevertheless it’s useful to have multiple method.

Check out more article on – How-To tutorial and latest highlights on – Technical News, Apple Products