Skip to content
Search

Linux:Battery

lastmod 2020-06-30created 2020-06-301 edits

Simple way

The command below shows the remaining battery charge as a percentage. The value ranges from 0 to 100.

$ cat /sys/class/power_supply/BAT0/capacity

See also

Favorite site

author Zer0 sitemap