Created
April 28, 2024 23:22
-
-
Save fabiolimace/f3cdf22e5f8ce24a9b0611a8b14b9968 to your computer and use it in GitHub Desktop.
Get current temperature
This file contains 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
# 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