Skip to content

Instantly share code, notes, and snippets.

@fabiolimace
Created April 28, 2024 23:22
Show Gist options
  • Save fabiolimace/f3cdf22e5f8ce24a9b0611a8b14b9968 to your computer and use it in GitHub Desktop.
Save fabiolimace/f3cdf22e5f8ce24a9b0611a8b14b9968 to your computer and use it in GitHub Desktop.
Get current temperature
# https://askubuntu.com/questions/15832/how-do-i-get-the-cpu-temperature
paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) \
| column -s $'\t' -t \
| sed 's/\(.\)..$/.\1°C/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment