How do i modify the command to read temperature and time
How do I modify the command sudo powermetrics --samplers smc |grep -i "CPU die temperature"
to also provide a timestamp in terminal?
Solution 1:
I use date -u
before commands.
date -u && sudo powermetrics --samplers smc |grep -i "CPU die temperature"