Find fan speed and cpu temp in Linux

fan

What are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). Is there any alternative for that?

Best Answer

For CPU temperature:

On Debian:

sudo apt-get install lm-sensors

On Centos:

sudo yum install lm_sensors

Run using:

sudo sensors-detect

Type sensors to get CPU temp.

For fan speed:

sensors | grep -i fan

This will output fan speed

or install psensor using:

sudo apt-get install psensor

One can also use hardinfo

sudo apt-get install hardinfo
Related Question