how to check the temperature of the pi using command line

to get the temperature of the pi in shell or command line type the following:


vcgencmd measure_temp

This measures the GPU temperature.

Which should generate something like this:

To get the ARM CPU temperature you will need a bit of a shell script.

Add this to a .sh file and make it executable


nano ~/

in this file add the following


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

then make the file +x or executable with chmod


chmod +x ~/

Here is a working example:

No Items Found.

Add Comment
Type in a Nick Name here
Page Views

This page has been viewed 409 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
You drown not by falling in the river, but by staying submerged.