how to check the temperature of mac code example Example: get mac temperature sudo powermetrics --samplers smc |grep -i "CPU die temperature"