Getting information about your CPU with the terminal in Ubuntu 18.04 is very easy. The sensors utility can get information about the CPU temperature.
jason@Yog-Sothoth » ~ » $ sensors coretemp-isa-0000 Adapter: ISA adapter Package id 0: +30.0°C (high = +80.0°C, crit = +100.0°C) Core 0: +30.0°C (high = +80.0°C, crit = +100.0°C) Core 1: +30.0°C (high = +80.0°C, crit = +100.0°C) Core 2: +29.0°C (high = +80.0°C, crit = +100.0°C) Core 3: +28.0°C (high = +80.0°C, crit = +100.0°C)
To get the temperature of an NVidia card, use the nvidia-smi command to get detailed card information.
jason@Yog-Sothoth » ~ » $ nvidia-smi -q -d temperature ==============NVSMI LOG============== Timestamp : Wed May 30 20:14:09 2018 Driver Version : 390.48 Attached GPUs : 1 GPU 00000000:04:00.0 Temperature GPU Current Temp : 42 C GPU Shutdown Temp : 102 C GPU Slowdown Temp : 99 C GPU Max Operating Temp : N/A Memory Current Temp : N/A Memory Max Operating Temp : N/A
This is another way to get this info.
jason@Yog-Sothoth » ~ » $ nvidia-settings -q gpucoretemp | grep gpu
This is how to get the HDD temperature in Celsius.
jason@Yog-Sothoth » ~ » $ sudo smartctl -A /dev/sda | grep Temperature_Celsius 194 Temperature_Celsius 0x0022 026 054 000 Old_age Always - 26 (0 9 0 0 0)
These commands are very useful for monitoring the temperature of your computer hardware. And Linux makes this very easy to do.