There are several ways to see the CPU temperature on CentOS 7 and Red Hat Enterprise Linux 7 (RHEL 7). Here are a few options:
lm_sensors
: The lm_sensors
package includes a set of tools that can be used to monitor the temperature and other hardware sensors on the system, including the CPU. To install lm_sensors
, run the following command:yum install lm_sensors
Once lm_sensors
is installed, you can use the sensors
command to see the CPU temperature. For example:
sensors
This will display the temperature of the CPU, as well as other hardware sensors on the system.
hddtemp
: The hddtemp
package includes a tool that can be used to monitor the temperature of hard disk drives on the system. It can also be used to monitor the temperature of some CPUs, although its support for CPU temperature monitoring is limited. To install hddtemp
, run the following command:yum install hddtemp
Once hddtemp
is installed, you can use the hddtemp
command to see the CPU temperature. For example:
hddtemp /dev/cpu0
This will display the temperature of the CPU, if it is supported by hddtemp
.
ipmitool
: The ipmitool
package includes a set of tools that can be used to manage and monitor hardware components, including the CPU, through the Intelligent Platform Management Interface (IPMI). To install ipmitool
, run the following command:yum install ipmitool
Once ipmitool
is installed, you can use the ipmitool
command to see the CPU temperature. For example:
ipmitool sdr type temperature
This will display the temperature of the CPU, as well as other hardware sensors on the system.
F2
or Delete
during the boot process.These are just a few examples of how to see the CPU temperature on CentOS 7 and RHEL 7. For more options and usage examples, you can refer to the man pages for these tools by typing man
followed by the tool name at the command prompt.