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