Skip to content

Instantly share code, notes, and snippets.

@medigor
Created December 19, 2020 21:13
Show Gist options
  • Save medigor/0a00faa662c33f77b4d50a1a27c3c190 to your computer and use it in GitHub Desktop.
Save medigor/0a00faa662c33f77b4d50a1a27c3c190 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "Temp:" $(($(cat /sys/class/thermal/thermal_zone0/temp)/1000))C
echo "CPU 0 Freq:" $(($(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)/1000))MHz
echo "CPU 1 Freq:" $(($(cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq)/1000))MHz
echo "CPU 2 Freq:" $(($(cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq)/1000))MHz
echo "CPU 3 Freq:" $(($(cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq)/1000))MHz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment