Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to get the temp of cpu in linux terminal raspberry pi

cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "$((cpu/1000)) c"
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #temp #cpu #linux #terminal #raspberry #pi
ADD COMMENT
Topic
Name
7+5 =