Cpu Temperature

Cpu Tmperature:

In this article will show you how you can read your Cpu Temperature.
step 1: you need to open your terminal type “cd /sys/class/thermal/thermal_zone0″ without quotes and press enter.
step 2: cat temp
you will see five digit number. this is not in correct format .The first two digit is the cpu temperature.

I have written the script to show you correct form of cpu temperature . copy the below code and save it as cputemp.sh
cputemp0=`cat /sys/class/thermal/thermal_zone0/temp`
echo CPU temp”=”$cputemp1″.”$cputemp”‘C”

After saving the code as cputemp.sh open terminal and type the following:
chmod u+x cputemp.sh
Cpu Temperature

Plz Share Share on FacebookShare on Google+Share on LinkedInTweet about this on TwitterEmail this to someoneShare on RedditShare on TumblrDigg thisBuffer this pagePrint this pagePin on PinterestShare on StumbleUponFlattr the author
Bookmark the permalink.


  1. Actually, the format of this file is machine dependent. On my uDoo, running Ubuntu, the file is located at /sys/class/thermal/thermal_zone0/temp, and the current value is “38”; a two digit number.

  2. cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory

Leave a Reply

Your email address will not be published. Required fields are marked *