• 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 / Ubuntu Linux Command to Check Battery Status & Battery Health

Ubuntu Linux Command to Check Battery Status & Battery Health

By Sourabh / March 28, 2022 Category: How To, Ubuntu

How to check battery status in Linux terminal using commandline. Here is how to use Linux laptop battery tool to monitor battery usage in Ubuntu Linux systems.

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 to get battery information.

Primary Sidebar

Latest Posts

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

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

How To Shutdown Linux With A 15 Minute Delay And Message

Free AI Courses With Certificate For Beginners In India

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

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