Question fréquemment posée
How to check battery capacity (and other information) from the command line
Dernière mise à jour il y a 4 ans
The following command can be used to check the battery capacity.
Although this information is available within System Information/System Profiler, and third-party apps like Coconut Battery, this command can be used within scripts. This command can also be used within the recovery boot environment, even when there is no OS installed.
ioreg -w0 -l | grep Capacity
Although this information is available within System Information/System Profiler, and third-party apps like Coconut Battery, this command can be used within scripts. This command can also be used within the recovery boot environment, even when there is no OS installed.