Here’s a little shell function to view your system thermometers. Most
people would just tell you to install the lm-sensors
package, but
that’s another package. Why do that when Linux presents it through the
/sys
filesystem.
These files present the temperature in millidegrees Celsius. So you should divide by a thousand if you want them in complete degrees. Below I have another function to display in Fahrenheit.
For more details about temperature monitoring on Linux I recommend that you take a look at this kernel documentation.