• 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

cpufreq-set : command not found

by Deepika

The cpufreq-set command is a utility in Linux that is used to adjust 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 set the CPU frequency to a specific value, use the following command:

# cpufreq-set -f FREQUENCY -c CPU

This will set the frequency of the specified CPU to the specified value.

If you encounter the below error while running the command cpufreq-set:

cpufreq-set: command not found

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

Distribution Command
Debian apt-get install cpufrequtils
Ubuntu apt-get install cpufrequtils
Alpine apk add cpufrequtils
Kali Linux apt-get install cpufrequtils
CentOS yum install cpufrequtils
Raspbian apt-get install cpufrequtils

cpufrequtils Command Examples

1. Set the CPU frequency policy of CPU 1 to “userspace”:

# sudo cpufreq-set -c 1 -g userspace

2. Set the current minimum CPU frequency of CPU 1:

# sudo cpufreq-set -c 1 --min min_frequency

3. Set the current maximum CPU frequency of CPU 1:

# sudo cpufreq-set -c 1 --max max_frequency

4. Set the current work frequency of CPU 1:

# sudo cpufreq-set -c 1 -f work_frequency

Filed Under: Linux

Some more articles you might also be interested in …

  1. wc: command not found
  2. xclip: command not found
  3. du: command not found
  4. find: command not found
  5. do-release-upgrade Command Examples in Linux
  6. How to install/remove/query/update RPM packages in Linux (Cheat Sheet)
  7. How to run a cron job on specific days of the week
  8. CentOS / RHEL 7 : Booting process
  9. “Couldn’t find device with uuid [UUID]” – error whith pvs command
  10. checkinstall Command Examples in Linux

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