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)
相关推荐
国科安芯9 小时前
RISC-V 异常中断机制全解析
运维·单片机·嵌入式硬件·安全·risc-v·安全性测试
鸠摩智首席音效师9 小时前
如何在 Linux 下以 www-data 用户运行 Crontab ?
linux·运维·服务器
wdfk_prog9 小时前
[Linux]学习笔记系列 -- [fs]inode
linux·笔记·学习
全栈工程师修炼指南9 小时前
Nginx | HTTP 反向代理:对上游服务端响应缓存流程浅析与配置实践
运维·网络协议·nginx·http·缓存
iCxhust9 小时前
linux /etc 目录 etc是什么缩写
linux·运维·服务器·php
果汁底线9 小时前
UFS Auto Hibernate介绍
linux·ufs
QT 小鲜肉10 小时前
【Linux命令大全】001.文件管理之mc命令(实操篇)
linux·运维·服务器·前端·笔记
测试人社区-千羽10 小时前
智能化测试:AI驱动的测试覆盖率提升方法论与实战路径
运维·人工智能·测试工具·程序人生·自动化·测试覆盖率
ST小智10 小时前
2025年创作历程回顾与个人生活平衡
大数据·linux·人工智能
loong_XL10 小时前
elastic kibana可视化数据统计案例
运维·ai·智能体