树莓派查看CPU和GPU温度

为什么80%的码农都做不了架构师?>>>   hot3.png

#!/bin/bash - 
#===============================================================================
#
#          FILE: temp.sh
# 
#         USAGE: ./temp.sh 
# 
#   DESCRIPTION: 
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Yehun (), [email protected]
#  ORGANIZATION: Yehun
#       CREATED: 03/09/2018 01:40:25 PM
#      REVISION:  ---
#===============================================================================

cat /sys/class/thermal/thermal_zone0/temp | awk '{print "CPU Temp:"(int($0) / 1000)}'
/opt/vc/bin/vcgencmd measure_temp | cut -c6-9 | awk '{print "CPU Temp:"$0}'

 

转载于:https://my.oschina.net/yehun/blog/1633498

你可能感兴趣的:(树莓派查看CPU和GPU温度)