Category: Mac
You can obtain CPU temperature and thermal information for your Mac from the command line as follows:
sysctl machdep.xcpm.cpu_thermal_level
Sample output:
machdep.xcpm.cpu_thermal_level: 60
To show more detailed information including fan speed (RPM) and CPU die temperature:
sudo powermetrics --samplers smc
Sample output:
**** SMC sensors ****
CPU Thermal level: 36
IO Thermal level: 0
Fan: 1228.98 rpm
CPU die temperature: 64.88 C
CPU Plimit: 0.00
GPU Plimit (Int): 0.00
Number of prochots: 0