Skip to content

Instantly share code, notes, and snippets.

@dingzeyuli
Last active September 27, 2017 14:23
Show Gist options
  • Save dingzeyuli/575a1e2f5b1cbaa6abb53142e520612f to your computer and use it in GitHub Desktop.
Save dingzeyuli/575a1e2f5b1cbaa6abb53142e520612f to your computer and use it in GitHub Desktop.
get all the core temperature
cat /sys/devices/platform/coretemp.?/hwmon*/hwmon*/temp*_input
cat /sys/devices/platform/coretemp.?/hwmon*/hwmon*/temp*_input | awk '{ total += $1 } END { print total/NR/1000 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment