How to check temperature from bash console

Just install apt install lm-sensors and then sensors and done. You can now monitor it in a window with for example watch -n 1 sensors and it will refresh each second.

Depending on system, output can be different but all supported temps and devices will be mapped and showed.

Example from RPI 4

Example from Debian laptop