Skip to content

Instantly share code, notes, and snippets.

@awaxa
Created November 8, 2016 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awaxa/15fc41b65438434e45908251a9c4ddbe to your computer and use it in GitHub Desktop.
Save awaxa/15fc41b65438434e45908251a9c4ddbe to your computer and use it in GitHub Desktop.
echo -n 'CPU Temperatures (Celsius): '
for thermal_zone in thermal_zone3 thermal_zone4 ; do
echo -n "$(echo 'scale=1;' $(cat /sys/class/thermal/$thermal_zone/temp) '/1000' | bc) "
done
echo
@awaxa
Copy link
Author

awaxa commented Nov 8, 2016

note: you may need to apt-get install bc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment