DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Check Your Mac Notebook's Battery Statistics

04.02.2005
| 7692 views |
  • submit to reddit
        
/usr/sbin/ioreg -p IODeviceTree -n battery -w 0 | grep IOBatteryInfo
or

ioreg -l -w0 | grep -i IOBatteryInfo