$ ls /sys/class/thermal thermal_zone0
#!/bin/bash while true do cat /sys/class/thermal/thermal_zone0/temp |awk '{print $1/1000}' sleep 1 done