Monitoring your system’s temperature is critical, especially when dealing with servers, laptops under heavy load, or custom-built PCs. High temperatures can lead to reduced performance, hardware damage, or sudden shutdowns. Fortunately, Linux offers powerful tools to monitor CPU, GPU, and hard drive temperatures in real-time.
Here’s how you can view and monitor system temperatures on a Linux machine.
lm-sensors
is the most widely used tool for reading hardware temperature, voltage, and fan speed.
Debian/Ubuntu:
RedHat/CentOS/Fedora:
Run the sensor detection script:
Answer “yes” to the prompts. Then, run:
You can use “watch” to view temperatures at regular intervals:
This refreshes the output every 2 seconds.
Install NVIDIA tools:
Then run:
Install:
Or rely on:
You can use hddtemp or smartctl from the smartmontools package.
If you prefer GUI-based tools:
Psensor: Displays CPU, GPU, HDD temperatures in real time.
GNOME Sensors Applet: Ideal for GNOME desktop environments.
You can use cron jobs or monitoring tools like Nagios, Zabbix, or Netdata to:
Set threshold alerts
Log temperature over time
Trigger scripts or shutdown on overheating
Monitoring temperature on Linux is both simple and flexible — whether you prefer command-line tools or full graphical dashboards. Regular checks can prevent overheating, hardware failures, and costly downtime.
Похожие записи не найдены.