Skip to content

CPU Speed Script

This script is extremely simple. I wrote it while trying to slow down a VIA C3 processor with the Linux powersave tools. This script was first made public here.

You can kill the script at the command line with ctrl-C in most shells.

#! /bin/bash
# 2004/01/07
# output cpu speed every second or so until terminated.  

while [ true ]; do
        powersave -r 

        #use this line instead if you don't have powersave
        #grep MHz /proc/cpuinfo | cut -d: -f2

        sleep 1
done