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-sensors
sudo apt install lm-sensors
sudo 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-sensors
apt-cache search hddtemp
sensors
sudo 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:
hddtemp
sudo 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.