Advertisement
kisslo

temp_cpu.sh

May 19th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. #!/bin/sh
  2. # Raspberry pi 3 - CentOS Linux release 7.3.1611 (Core)
  3. cpu=$(</sys/class/thermal/thermal_zone0/temp)
  4. echo "$((cpu/1000))°c"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement