Linux Check Battery Status Command

Iam new CentOS Linux user and using it on Dell laptop. How can I check check battery status using X terminal on CentOS or Debian/Ubuntu Linux?

You need to use any one of the following command to find out battery status information for Linux powered laptop.

Tutorial details
Difficulty level Easy
Root privileges No
Requirements Linux
Est. reading time 1 minutes

Howto check battery status under Linux?

Open the Terminal and type the following command:
acpi
OR
acpi -i -b

Fig.01: Showing acpi battery status on Linux

Fig.01: Showing acpi battery status on Linux

Use the upower command to get battery status on Linux

On the latest version of Linux try the following command::

upower -i /org/freedesktop/UPower/devices/battery_BAT0

Sample outputs:

Fig.02: Displaying battery info using upower

Fig.02: Displaying battery info using upower

Related media



(Video 01: Linux Check Battery Status Using Terminal Command Line )

How Do I Get CPU Temperature Data On Linux?

How Do I Read Hard Disk Temperature on Linux?

Summing up

See the following man pages using the help command or man command:
man 1 acpi
man 1 upower
man 5 proc

Did you find this article useful?