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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

cpupower: command not found

by Deepika

The cpupower command is a utility in Linux that is used to manage and configure the CPU frequency scaling settings of a system. CPU frequency scaling is the process of adjusting the speed at which a CPU is able to process instructions in order to save energy or improve performance.

To display the current CPU frequency settings, use the following command:

# cpupower frequency-info

This will display information about the current CPU frequency scaling settings, including the current frequency, the available frequencies, and the current governor.

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

cpupower: command not found

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

Distribution Command
Debian apt-get install linux-cpupower
Ubuntu apt-get install linux-cpupower
Arch Linux pacman -S cpupower
Kali Linux apt-get install linux-cpupower
CentOS yum install cpupowerutils
Fedora dnf install kernel-tools
Raspbian apt-get install linux-cpupower

cpupower Command Examples

1. List CPUs:

# sudo cpupower --cpu all info

2. Print information about all cores:

# sudo cpupower --cpu all info

3. Set all CPUs to a power-saving frequency governor:

# sudo cpupower --cpu all frequency-set --governor powersave

4. Print CPU 0’s available frequency [g]overnors:

# sudo cpupower --cpu 0 frequency-info g | grep "analyzing\|governors"

5. Print CPU 4’s frequency from the hardware, in a human-readable format:

# sudo cpupower --cpu 4 frequency-info --hwfreq --human

Filed Under: Linux

Some more articles you might also be interested in …

  1. prlimit Command Examples in Linux
  2. How to mount an iso file in Linux
  3. How To Migrate Existing Iptables rules to Nftables In CentOS/RHEL 8
  4. “aws s3” Command Examples
  5. How to Enable Remote Desktop to Share the Current Desktop Session in CentOS/RHEL 7
  6. service: command not found
  7. fastlane: Build and release mobile applications from the command-line.
  8. Unable to set a GRUB password on a Raspberry Pi 3 system
  9. All Linux Compress/Decompress Commands
  10. ifenslave Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright