Get CPU Temperature and Frequency on Ubuntu Server

To install these tools, run the following command in a terminal:

sudo apt install lm-sensors hddtemp

Then start the detection of your hardware sensors:

sudo sensors-detect

To make sure that it works, run the command below:


It will give you an output like:

Adapter: Virtual device
temp1: +43.0°C (crit = +98.0°C)
Adapter: ISA adapter
Physical id 0: +44.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +41.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +40.0°C (high = +100.0°C, crit = +100.0°C)

From the command line type lscpu. The information will be at CPU MHz:

~$ lscpu | grep MHz
CPU MHz:               804.901
CPU max MHz:           3200.0000
CPU min MHz:           800.0000

Leave a Reply

Your email address will not be published. Required fields are marked *