See CPU and harddrive temperature from the command line in Ubuntu

Install lm-sensors and then configure it. You’ll be asked to try different ways to interface with the hardware that interfaces with the temperature sensors.

sudo apt-get install lm-sensors
sudo sensors-detect
sudo service module-init-tools start

When finished run this to see the CPU temperatures:

sensors

And you’ll see something like this:

acpitz-virtual-0
Adapter: Virtual device
temp1:        +41.0°C  (crit = +110.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +33.0°C  (high = +85.0°C, crit = +85.0°C)
Core 1:       +35.0°C  (high = +85.0°C, crit = +85.0°C)

To see the temperature of the hard drives:

sudo apt-get install hddtemp
sudo hddtemp /dev/sda

You’ll see something like this:

/dev/sda: HTS541060G9SA00: 38°C

Ref: http://askubuntu.com/questions/15832/how-do-i-get-the-cpu-temperature

You might also like

Fix “macports checking for Tcl configuration… configure: error: Can’t find Tcl configuration definitions” when selfupdating Macports in Mac OS X 10.9 Mavericks
I've just upgraded my Mac OS X to Mavericks 10.9. When I tried to update Macports I got an error and...

Fix “macports checking for Tcl configuration… configure: error: Can’t find Tcl configuration definitions” when selfupdating Macports in Mac OS X 10.9 Mavericks
I've just upgraded my Mac OS X to Mavericks 10.9. When I tried to update Macports I got an error and...

Install OpenCV 2.3.1 in Ubuntu 12.04
OpenCV 2.3.1 is now the last version in repositories so you just need to run:sudo apt-get install...

Install OpenCV 2.3.1 in Ubuntu 12.04
OpenCV 2.3.1 is now the last version in repositories so you just need to run:sudo apt-get install...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.