Thursday, April 2, 2009

Find current Temperature of the box

You can check your computer's temperature using only standard tools, with the command:

$ cat /proc/acpi/thermal_zone/*/temperature

Depending on your hardware, you may have more than one sensor.

This method of checking your computer's temperate works only if ACPI thermal zones are supported on your computer. Most laptops and some desktop systems support them.

On my box it is:

$ uname -a

Linux hostname 2.6.9-67.0.1.ELsmp #1 SMP Fri Nov 30 11:51:05 EST 2007 i686 i686 i386 GNU/Linux

$ cat /proc/acpi/thermal_zone/THM0/temperature

temperature: 8 C



No comments:

Post a Comment