• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

battop Command Examples in Linux

by admin

battop is a command-line tool in Linux that is used to display a real-time, top-like view of the battery usage and performance on a laptop or other portable device. It provides detailed information about the battery status, such as the current charge level, the remaining runtime, and the power usage.

To use battop, you will need to have the battop package installed on your Linux system. You can install battop using the package manager for your specific distribution of Linux. For example, on an Ubuntu system, you can use the apt command to install battop:

$ sudo apt install battop

Once battop is installed, you can use it to display a real-time view of the battery usage and performance by running the battop command. battop will display a list of all the available batteries on the system, along with their current status and performance metrics. You can use the arrow keys to navigate through the list and the q key to exit battop.

battop supports a variety of command-line options that allow you to customize the display and behavior of the tool, such as the refresh rate, the color scheme, or the sorting order. You can use these options to fine-tune the output to suit your needs.

battop Command Examples

1. Display battery information:

# battop

2. Change battery information measurement [u]nit (default: human):

# battop -u [human|si]

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to change the default location (/var/cache/yum) of yum cache
  2. How to use strace and ltrace commands in Linux
  3. xeyes: command not found
  4. How to disable NetworkManager on CentOS / RHEL 7
  5. How to extract RPM package without installing it
  6. whiptail: command not found
  7. subscription-manager: command not found
  8. makepkg: command not found
  9. CentOS / RHEL 7 : unable to start vsftpd service
  10. flatpak-builder Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “aws s3 mv” Command Examples
  • “aws s3 mb” Command Examples
  • “aws s3 ls” Command Examples
  • “aws s3 cp” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright