linux小工具杂记

lm_sensors

通过lm_sensors工具可以显示传感器数据,但是不同设备传感器配置也不同,如果传感器比较完备可能获取到风扇转速、温度和功率数值,如果没有的话自然没有数值

安装

探测传感器

复制代码
yum install -y lm_sensors

使用

复制代码
sensors-detect

显示结果例如:

复制代码
# sensors-detect revision 3.4.0-8 (2016-06-01)
# System: Centerm C92 [1*V1.*]
# Kernel: 3.10.0-1160.el7.x86_64 x86_64
# Processor: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz (6/55/8)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): YES
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 17h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

sensors

本机只有温度传感器,结果如下:

复制代码
acpitz-virtual-0
Adapter: Virtual device
temp1:        +26.8°C  (crit = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +21.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +21.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:       +23.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:       +23.0°C  (high = +105.0°C, crit = +105.0°C)
相关推荐
wang090714 小时前
Linux性能优化之文件系统基础介绍
java·linux·性能优化
F_D_Z14 小时前
【解决办法】Claude报错Unable to connect to Anthropic services无法连接Anthropic
linux·服务器·claude·anthropic
龙智DevSecOps解决方案14 小时前
深度:Perforce P4 MCP 服务器开源解析——当版本控制遇见 AI Agent
运维·服务器·人工智能
小杰帅气14 小时前
负载均衡式的在线OJ
运维·负载均衡
蜡笔婧萱14 小时前
Linux--RHCE关于at和crond的第一次应用
linux·运维·服务器
VBsemi-专注于MOSFET研发定制14 小时前
高端LED封装自动化产线功率MOSFET选型方案——精密、高效与可靠驱动系统设计指南
运维·单片机·自动化
Agent手记14 小时前
生产节拍混乱,在制品积压严重该怎么破解?——2026制造业柔性生产与Agent自动化实战指南
运维·人工智能·ai·自动化
hjjdebug14 小时前
制作ubuntu usb安装盘 (用dd 命令)
linux·u盘·安装盘
小程同学>o<14 小时前
Linux 应用层开发入门(二十五)| 网络编程
linux·网络·嵌入式软件·嵌入式应用层·应用层开发·linux应用层开发
shughui14 小时前
2026最新JDK版本选择及下载安装详细图文教程【windows、mac附安装包】
java·linux·开发语言·windows·jdk·mac