Find the Temperature of your Raspberry Pi

It happens to all of us; you’re sitting there tinkering away on your Raspberry Pi and the thought enters your head: I wonder how warm this thing is right now.

It’s a good question and easy to answer. From the command line, simply enter this command:

     sudo /opt/vc/bin/vcgencmd measure_temp

For a nice, human-readable output in centigrade. You can take it a step further and write the command into a shell script and for easy execution. For example, I created a script called and added the following:


     sudo /opt/vc/bin/vcgencmd measure_temp

After saving, I made it executable for only my user with:

     chmod 700

And now I can pull up the temperature at any time by executing:


from the command line.

Questions? Comments? Let me know below or at @goestocollege on twitter.