How can I monitor the CPU temperature under linux?

How can I monitor the CPU temperature under linux

 i'll explain in this post how can you monitor the cpu temperature by different methods

method 1

you need the lm-sensors package. 

I thought I should mention that in addition to installing the package, you should run the sensors-detect command to identify the kernel modules that need to be loaded. 

If you haven't done this, manually run this once and check if it detects any sensors on board your computer.

$ sudo sensors-detect 
# sensors-detect revision 5249 (2008-05-11 22:56:25 +0200)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.
 
 
If you're lucky, your laptop will support an array of sensors. If not, you may still find a basic set of sensors for the CPU:
 
 $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +40.5°C (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0: +35.0°C (crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter 
 Core 1:      +40.0°C  (crit = +100.0°C) 


Using 'sensors' (from lm-sensors) and 'watch' (from procps pkg), you can real-time monitor sensors data on the command line via:
 
 watch -n 1 -d sensors


Every 1.0s: /usr/bin/sensors

...
temp1: +55C (high = +50C, hyst = +45C) sensor = thermistor ALARM
temp2: +35.0C (high = +80C, hyst = +75C) sensor = thermistor
temp3: +35.0C (high = +80C, hyst = +75C) sensor = thermistor
 

_______________________________________________________________________________________
method 2

Lm-sensors is a hardware health monitoring package for Linux. It allows you to access information from temperature, voltage, and fan speed sensors. It works with most newer systems. This package contains programs to help you set up and read data from lm-sensors.

To install use :
# sudo apt-get install lm-sensors sensors-applet To use :
# sensors-detect ... # 
sensors V1.5: +2.467 V (min = +1.42 V, max = +1.58 V) ALARM VCore: +1.479 V (min = +1.48 V, max = +1.63 V) ALARM V3.3: +3.373 V (min = +3.13 V, max = +3.47 V) V5: +5.000 V (min = +4.74 V, max = +5.26 V) V12: +11.734 V (min = +11.38 V, max = +12.62 V) CPU_Fan: 2299 RPM (min = 4000 RPM) ALARM fan2: 0 RPM (min = 0 RPM) fan3: 1057 RPM (min = 0 RPM) fan4: 0 RPM (min = 0 RPM) CPU: +41.50°C (low = +10°C, high = +50°C) Board: +35.25°C (low = +10°C, high = +35°C) Remote: +35.50°C (low = +10°C, high = +35°C) ALARM CPU_PWM: 144 Fan2_PWM: 112 Fan3_PWM: 112 vid: +1.550 V (VRM Version 9.0)
  or add the applet to your taskbar.

enter image description here


 
 
method 3

 the computertemp applet.

Computer Temperature Monitor is a little applet for the GNOME desktop that shows the temperature of your computer CPU and disks on screen.
It also allows you to log temperatures to a file. You can set alarms to notify you when a tempertature is reached. Several monitors can be added to the panel to monitor different sensors. It is designed to look like CPU Frequency Gnome applet, so they match each other on panel.
To install use :
sudo apt-get install computertemp and then add to your taskbar
enter image description here