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: