Development

How to Check a Linux Laptop’s Battery From the Command Line

Captain Salem

How to Check a Linux Laptop’s Battery From the Command Line

Laptops are some of the most popular portable devices in the modern age. They allow you to carry a power computer almost anywhere you want.

When working in the Linux command-line, you may need to monitor the battery percentage of your device without using the Graphical interface.

Using this tutorial, you will learn various methods and techniques you can use to check the battery level of your device from the terminal.

Method 1 - Show Batter Status using the upower command

Upower is one of commands we can use to check the status of your device battery. This command provides you with a simple interface for querying the upower daemon.

Start by fetching the power sources on your devices using the -e option. Example:

Share
Comments
More from Cloudenv

Cloudenv

Developer Tips, Tricks and Tutorials.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Cloudenv.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.