SHARE
TWEET

temp_cpu.sh

kisslo May 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
Want to get better at Bash?
Learn to code Bash in 2017
Top