How to see CPU temperature on CentOS 7 and RedHat Enterprise Linux 7

To see the CPU temperature on CentOS 7 / Red Hat Enterprise Linux 7, you can use the “lm_sensors” package. This package provides tools to monitor the temperature of various system components, including the CPU.

To install the “lm_sensors” package, run the following command:

# yum install lm_sensors

Once the package is installed, you can run the following command to detect the temperature sensors in your system:

# sensors-detect

Follow the prompts to configure the sensors. After the sensors are configured, you can use the following command to see the temperature of your CPU:

# sensors

The output will show the temperature of the CPU and other components. The temperature will be displayed in Celsius.

Note: The exact output of the “sensors” command may vary depending on the type of CPU and other components in your system.

That’s it! You have now seen the CPU temperature on your CentOS 7 / Red Hat Enterprise Linux 7 system.

(https://www.freewayseguros.com/)

Leave a Comment