• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Check Battery Status And Health In Linux Ubuntu

How To Check Battery Status And Health In Linux Ubuntu

By Sourabh / June 30, 2022 Category: How To, Ubuntu

How to check battery status using Linux commandline. Here is the terminal command to check battery health in Linux and check battery status in Linux server.

Using upower command and acpi command in Linux one can easily view the information about the system battery in terminal.

upower

upower is a command line tool to get information about the system power source (battery). The command is very easy to use and can display all the available information about the battery connected to the laptop o power source to PC.

Two of the most used command options are:

  1. –monitor: Connect to the UPower daemon and print a line every time a power source is added, removed or changed.
  2. –monitor-detail: Like –monitor but prints the full details of the power source whenever an event happens.

Using upower Command

Here is how to use upower command to get information about the battery in terminal.

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

$ upower -i `upower -e | grep 'BAT'`

$ upower -i $(upower -e | grep BAT) | grep --color=never -E "state|to\ full|to\ empty|percentage"

acpi

acpi – Shows battery status and other ACPI information. acpi Shows information from the /proc or the /sys filesystem, such as battery status or thermal information.

acpi Command Options

There most frequently used acpi command options are:

  1. -b | –battery show battery information
  2. -a | –ac-adapter show ac adapter information
  3. -t | –thermal show thermal information
  4. -c | –cooling show cooling device information
  5. -V | –everything show every device, overrides above options
  6. -s | –show-empty show non-operational devices
  7. -i | –details show additional details if available such as battery capacity information and temperature trip points
  8. -f | –fahrenheit use fahrenheit as the temperature unit instead of default celsius

Using acpi Command

Use the acpi command standalone or using one of the above listed command options.

$ acpi -V

$ acpi -t

You can also use GUI method t

Primary Sidebar

Latest Posts

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap