• 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. fallocate: command not found
  2. How to Reset Root Password in CentOS/RHEL 8
  3. “userdel: user xxx is currently used by process yyy” – Unable to delete an User
  4. “shutdown” Command Examples in Linux
  5. mkfs.hfsplus: command not found
  6. brightnessctl Command Examples in Linux
  7. Linux OS service ‘iscsid’
  8. rusnapshot: command not found in Linux
  9. showmount Command Examples in Linux
  10. How to change the default permissions on /var/log/audit/audit.log file in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • “az storage blob” Command Examples (Manage blob storage containers and objects in Azure)
  • “az storage account” Command Examples (Manage storage accounts in Azure)
  • “az sshkey” Command Examples (Manage ssh public keys with virtual machines)
  • “az redis” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright