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:
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
in this file add the following
echo "$((cpu/1000)) c"
then make the file +x or executable with chmod
chmod +x ~/temp.sh
Here is a working example: