Linux

리눅스 환경 CPU 온도 확인하기 xsensors, lm_sensors

Naan 2023. 1. 9. 00:01
320x100

리눅스 환경 CPU 온도 확인하기 

보통 sensors 를 많이 사용한다.

GUI 환경의 xsensors

text 환경의 lm_sensors 

설치 방법은 우선 xsensors 

# yum install xsensors
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
base                                                                                                                                                                                                                                                                   | 3.6 kB  00:00:00
epel                                                                                                                                                                                                                                                                   | 4.7 kB  00:00:00
extras                                                                                                                                                                                                                                                                 | 2.9 kB  00:00:00
updates                                                                                                                                                                                                                                                                | 2.9 kB  00:00:00
(1/3): epel/x86_64/group_gz                                                                                                                                                                                                                                            |  98 kB  00:00:00
(2/3): epel/x86_64/updateinfo                                                                                                                                                                                                                                          | 1.0 MB  00:00:00
(3/3): epel/x86_64/primary_db                                                                                                                                                                                                                                          | 7.0 MB  00:00:01
Resolving Dependencies
--> Running transaction check
---> Package xsensors.x86_64 0:0.80-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================================================================
 Package                                                               Arch                                                                Version                                                                    Repository                                                         Size
==============================================================================================================================================================================================================================================================================================
Installing:
 xsensors                                                              x86_64                                                              0.80-2.el7                                                                 epel                                                               64 k

Transaction Summary
==============================================================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 64 k
Installed size: 93 k
Is this ok [y/d/N]: y
Downloading packages:
xsensors-0.80-2.el7.x86_64.rpm                                                                                                                                                                                                                                         |  64 kB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : xsensors-0.80-2.el7.x86_64                                                                                                                                                                                                                                                 1/1
  Verifying  : xsensors-0.80-2.el7.x86_64                                                                                                                                                                                                                                                 1/1

Installed:
  xsensors.x86_64 0:0.80-2.el7

Complete!

# xsensors 

온도가 GUI 환경으로 뜬다.

 

text 방식의 sensors 는

# yum install lm_sensors
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package lm_sensors.x86_64 0:3.4.0-8.20160601gitf9185e5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================================================================
 Package                                                            Arch                                                           Version                                                                                 Repository                                                    Size
==============================================================================================================================================================================================================================================================================================
Installing:
 lm_sensors                                                         x86_64                                                         3.4.0-8.20160601gitf9185e5.el7                                                          base                                                         141 k

Transaction Summary
==============================================================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 141 k
Installed size: 425 k
Is this ok [y/d/N]: y
Downloading packages:
lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64.rpm                                                                                                                                                                                                                   | 141 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64                                                                                                                                                                                                                           1/1
  Verifying  : lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64                                                                                                                                                                                                                           1/1

Installed:
  lm_sensors.x86_64 0:3.4.0-8.20160601gitf9185e5.el7

Complete!

# sensors 

1회성으로 나오는데

# watch sensors 

하면 지속적으로 화면에 노출이 된다.

320x100