luni, 3 februarie 2025

How to check battery status in CLI on Linux?

Option 1

cat /sys/class/power_supply/BAT0/capacity

Option 2: install the package acpi and

acpi -i

Sources:

How do I check the battery's status via the terminal?

How to Check Battery Status Using Linux Command Line

Niciun comentariu:

Trimiteți un comentariu