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:
Quoteacpi
OR
Quoteacpi -i -b
(https://pix.cobrasoft.org/images/2023/01/11/acpi-command-output.webp)
Use the upower command to get battery status on LinuxOn the latest version of Linux try the following command::
Quoteupower -i /org/freedesktop/UPower/devices/battery_BAT0
Sample outputs:
(https://pix.cobrasoft.org/images/2023/01/11/upower-command-output.webp)
How Do I Get CPU Temperature Data On Linux?- See our FAQ: Linux Read CPU Temperature Sensor Chip Data
How Do I Read Hard Disk Temperature on Linux?- View our Tip: Linux: Monitor hard disks temperature with hddtemp
Summing upSee the following man pages using the help command or man command:
Quoteman 1 acpi
man 1 upower
man 5 proc