BMX Bicycle freestyle
BMX Bicycle freestyle

Wednesday, November 4, 2009

Cpu temperature check

How to get computer (cpu) temperatures in linux?

Enter into terminal:

watch -d -n 1 "cat /proc/acpi/thermal_zone/*/temperature"

It updates once per second, actualy you get two temperatures this way

echo $(cat /proc/acpi/thermal_zone/*/temperature | grep C | awk '{
print $2 }' | awk '{ print $1 }')

returned 88 59 temperatures. One for each temperature sensor.

Could be interesting if you can calculate room temperature based on cpu
temperature (mine cpu load is always 100% due to distributed computing)

0 comments:

Post a Comment