This is a recipe to find out the operating temperature of your Raspberry Pi.

On the command line type after the '%' prompt:

  % vcgencmd measure_temp
It will return with the temperature, e.g.:

The vcgencmd command merely reads the value of a single line in a file written by the Raspberry Pi OS, a file located at:


Divide the value found there by 1000 to get the ARM CPU temperature in more human readable format. Here's the bash script to do that:

echo "$((cpu/1000)) c"

Tags:  Recipe, Raspberry Pi