Type the following command to install software on CentOS / RHEL / Fedora Linux:
yum install lm_sensors
If you are using Debian / Ubuntu Linux, enter:
sudo apt-get install lm-sensors
Now to configure lm_sensors:
To detect hardware monitoring chips, type the following command as the root user:
sensors-detect
or
sudo sensors-detect
you’ll need to answer yes to most if not all of the options as to which sensors to enable, finally select yes to add the lines to /etc/modules automatically.
To run / read the sensor information just type:
sensors
To have the information displayed in realtime use watch to display the sensors information. Use CTRL + C to end the watch command.
watch 'sensors | grep "Core "'