How to check system temperature in Linux Ubuntu. Here is how to check CPU temperature via command line Ubuntu Systems.
Check CPU temperature in Ubuntu Linux
Open terminal and install the lm-sensors and hddtemp packages in Ubuntu using the command:
sudo apt install hddtemp lm-sensorssudo apt install lm-sensorssudo apt install hddtemp
Once installed, run hddtemp command to see SSD and hard drive temperature in Ubuntu. You can also run sensors command to find out CPU temperature in Ubuntu Linux.
apt-cache search lm-sensorsapt-cache search hddtempsensorssudo sensors-detect
If you want to run sensors command repeatedly and to display the temperature on screen, run the following command:
watch sensors
Check HDD temperature in Ubuntu Linux
To see hard disk temperature in Ubuntu Linux, run:
hddtempsudo hddtemp SATA:/dev/sda
For the sensors command if you want the temperature to be displayed in Fahrenheit, you can use the command option -f or –Fahrenheit to print/display the temperatures in degrees Fahrenheit instead of Celsius.
