FreeBSD find CPU (processor) temperature command

To find the CPU temperature in FreeBSD, you can use the sysctl command to retrieve the temperature information from the system’s sensors. The temperature is stored in the “hw.sensors.cpu0.temp0” sysctl node.

Example:

sysctl hw.sensors.cpu0.temp0

Output:

hw.sensors.cpu0.temp0=56.0 degC

Note: The temperature output may vary depending on your system and the type of sensor used. The above example assumes a single-core CPU. If your system has multiple cores, you can check the temperature of each core by changing the “cpu0” part of the sysctl node to “cpu1”, “cpu2”, etc.

Leave a Comment