Skip to content

Instantly share code, notes, and snippets.

@acheong08
Created September 17, 2023 15:03
Show Gist options
  • Save acheong08/5b6a3bc405733db0508e228a195ec247 to your computer and use it in GitHub Desktop.
Save acheong08/5b6a3bc405733db0508e228a195ec247 to your computer and use it in GitHub Desktop.
CPU temperature script
#!/bin/bash
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