To live view CPU temperature on Linux, you can use several terminal-based tools that read from thermal sensors. Here are some of the most common and effective methods:
🔧 Method 1: Use sensors command (lm-sensors)
Step 1: Install lm-sensors
bash Copy code
sudo apt install lm-sensors # Debian/Ubuntu
sudo dnf install lm_sensors # Fedora
sudo pacman -S lm_sensors # Arch Linux
Step 2: Detect sensors
bash Copy code
sudo sensors-detect
Press Enter through all prompts to detect hardware sensors.
Step 3: View CPU temperature
bash Copy code
watch -n 1 sensors
This updates the sensor output every second (-n 1), giving you a near real-time view.
Sample Output:
code Copy code
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +46.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +45.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +47.0°C (high = +80.0°C, crit = +100.0°C)
📊 Method 2: Use htop with sensors plugin
Step 1: Install htop
bash Copy code
sudo apt install htop # Debian/Ubuntu
sudo dnf install htop # Fedora
sudo pacman -S htop # Arch
Step 2: Enable sensors in htop
Run htop, then press:
F2 → Go to "Display options"
Enable "Show CPU temperature " if available (depends on version/hardware)
⚠️ Not all versions of htop support displaying temperatures directly — depends on kernel/OS support.
🌡️ Method 3: Use cat on thermal zone files
Linux exposes CPU temperature in sysfs:
Find temperature files:
bash Copy code
find /sys/class/thermal -name temp
Example output:
code Copy code
/sys/class/thermal/thermal_zone0/temp
/sys/class/thermal/thermal_zone1/temp
View temperature:
bash Copy code
watch -n 1 "cat /sys/class/thermal/thermal_zone0/temp"
Often shows temperature in millidegrees Celsius , so divide by 1000 mentally or pipe it like:
bash Copy code
watch -n 1 "cat /sys/class/thermal/thermal_zone0/temp | awk '{print \$1/1000 \"°C\"}'"
🖼️ Method 4: Graphical Tools
If you prefer GUI:
Psensor : A graphical temperature monitor
bash Copy code
sudo apt install psensor # Debian/Ubuntu
Launch from application menu or run psensor
Netdata : Real-time performance and health monitoring
bash Copy code
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
✅ Summary:
For most users, watch -n 1 sensors after running sensors-detect is the easiest and most informative method to live-view CPU temps on Linux.
Let me know if you want to log temps or set alerts!