Check CPU/HDD temperature on Linux (ubuntu)

Check here for details.

For CPU Temperature:

  1. Install lm-sensors:  sudo apt-get install lm-sensors 
  2. Detect sensors:  sudo sensors-detect 
  3. To see cpu temperatures run:  sensors 

For HDD Temperature:

  1. Install hddtemp:  sudo apt-get install hddtemp 
  2. To see hdd temperature:  sudo hddtemp /dev/sda