Skip to content

Instantly share code, notes, and snippets.

@RagingTiger
Created January 2, 2019 23:08
Show Gist options
  • Save RagingTiger/54064cfc35ef9e38ff0a4595298355c9 to your computer and use it in GitHub Desktop.
Save RagingTiger/54064cfc35ef9e38ff0a4595298355c9 to your computer and use it in GitHub Desktop.
Check CPU Temp
cputemp(){
paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | \
column -s $'\t' -t | \
sed 's/\(.\)..$/.\1°C/'
}
cputemp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment