• 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

powerstat: command not found

by Deepika

The “powerstat” command is a Linux command that can be used to measure the power consumption of a computer that has a battery power source or supports the RAPL (Running Average Power Limit) interface. This command provides useful information about the power consumption of the system, which can help users optimize power usage and prolong battery life.

The power consumption of a computer can be affected by various factors such as the hardware components, system load, and power management settings. The “powerstat” command can provide information about the real-time power consumption of the system, as well as other statistics such as the energy used and the battery status.

If you encounter the below error while running the command powerstat:

powerstat: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install powerstat
Ubuntu apt-get install powerstat
Kali Linux apt-get install powerstat
Raspbian apt-get install powerstat

powerstat Command Examples

1. Measure power with the default of 10 samples with an interval of 10 seconds:

# powerstat

2. Measure power with custom number of samples and interval duration:

# powerstat interval number_of_samples

3. Measure power using Intel’s RAPL interface:

# powerstat -R interval number_of_samples

4. Show a histogram of the power measurements:

# powerstat -H interval number_of_samples

5. Enable all statistics gathering options:

# powerstat -a interval number_of_samples

Filed Under: Linux

Some more articles you might also be interested in …

  1. lvsd Command Examples in Linux
  2. pacstrap: command not found
  3. Linux OS Service ‘portreserve’
  4. CentOS / RHEL 7 : Booting process
  5. umask: command not found
  6. arpspoof: command not found
  7. Backtick (`) symbol in Linux Shell Scripting
  8. brctl Command Examples in Linux
  9. How to Configure Persistent Names for Tape Devices in CentOS/RHEL
  10. mkfs.btrfs: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright