Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kamilmirza on github.
  • I am kamilmirza (https://keybase.io/kamilmirza) on keybase.
  • I have a public key whose fingerprint is 6A60 BE6E 853E A217 62AE 93A6 04B0 B714 FF6E A5AE

To claim this, I am signing this object:

@kamilmirza
kamilmirza / cputemp.sh
Created February 12, 2019 12:33
view cpu temp by 1s delay
#!/bin/bash
while true
do
cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp)
cpuTemp1=$(($cpuTemp0/1000))
cpuTemp2=$(($cpuTemp0/100))
cpuTempM=$(($cpuTemp2 %$cpuTemp1))
wdate=`date +%H:%M:%S`
echo "CPU temp = $cpuTemp1.$cpuTempM_C : $wdate"