Posted: 30 May 2018. At: 8:30 PM. This was 6 years ago. Post ID: 12132
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

How to get information about your CPU and GPU with the terminal in Ubuntu 18.04.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.