Shell script to get the CPU temperature on Raspberry Pi OS.
Shell script courtesy of Pragmatic Linux.
To make this a custom command, save it as cputemp
in /usr/bin
and make it executable by running sudo chmod +x cputemp
.
Then run the custom command cputemp
anytime to see the CPU temperature.