Skip to content

Instantly share code, notes, and snippets.

@Prototype-X
Created March 27, 2017 12:10
Show Gist options
  • Save Prototype-X/30107d0ccb854ba0b4e7eb63acc41cab to your computer and use it in GitHub Desktop.
Save Prototype-X/30107d0ccb854ba0b4e7eb63acc41cab to your computer and use it in GitHub Desktop.
#!/bin/bash
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "GPU => $(/opt/vc/bin/vcgencmd measure_temp)"
echo "CPU => $((cpu/1000))'C"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment