Skip to content

Instantly share code, notes, and snippets.

@bkrepo
Created August 9, 2017 07:35
Show Gist options
  • Save bkrepo/b7265bfdc963b862a68a6b46e760300c to your computer and use it in GitHub Desktop.
Save bkrepo/b7265bfdc963b862a68a6b46e760300c to your computer and use it in GitHub Desktop.
CPU Frequency and Temperature monitor script
#!/bin/bash
while [ 1 ]
do
clear
for cpu in {0..7}
do
echo "CPU $cpu Freq: `cat /sys/devices/system/cpu/cpu$cpu/cpufreq/cpuinfo_cur_freq`"
done
echo "Temperature: `cat /sys/class/thermal/thermal_zone0/temp`"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment