Created
August 9, 2017 07:35
-
-
Save bkrepo/b7265bfdc963b862a68a6b46e760300c to your computer and use it in GitHub Desktop.
CPU Frequency and Temperature monitor script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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