how to check battery charge level in centos command line

1 Answer(s)
    upower -i /org/freedesktop/UPower/devices/battery_BAT0
    
    Example:
    
    [root@localhost ~]# upower -i /org/freedesktop/UPower/devices/battery_BAT0
     native-path: BAT0
     vendor: Hewlett-Packard
     model: Primary
     serial: 02288 2020/03/06
     power supply: yes
     updated: Mon 23 Aug 2021 12:16:47 AM EDT (1 seconds ago)
     has history: yes
     has statistics: yes
     battery
     present: yes
     rechargeable: yes
     state: charging
     warning-level: none
     energy: 0 Wh
     energy-empty: 0 Wh
     energy-full: 43.2 Wh
     energy-full-design: 43.2 Wh
     energy-rate: 0 W
     voltage: 7.132 V
     percentage: 0%
     capacity: 100%
     technology: lithium-ion
     icon-name: 'battery-caution-charging-symbolic'
    
    
    Answered on August 23, 2021.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.