日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux 系统硬件信息检测工具,在Linux上查找系统hwinfo硬件信息工具

發(fā)布時間:2023/12/20 linux 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux 系统硬件信息检测工具,在Linux上查找系统hwinfo硬件信息工具 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

hwinfo是一種硬件信息工具,可用于分析計算機(jī)上的硬件并以人類可讀的格式顯示有關(guān)各種硬件組件的詳細(xì)信息。

它報告有關(guān)CPU,RAM,鍵盤,鼠標(biāo),圖形卡,聲音,存儲,網(wǎng)絡(luò)接口,磁盤,分區(qū),BIOS和網(wǎng)橋等的信息。

該工具可以顯示詳細(xì)信息,例如lshw,dmidecode,inxi和其他工具。

hwinfo libhd庫用于libhd.so收集系統(tǒng)上的硬件信息。

該工具是專門為openSUSE系統(tǒng)設(shè)計的,但是后來其他發(fā)行版將該工具添加到其官方存儲庫中,因為它提供了有關(guān)計算機(jī)硬件的更好信息。

hwinfo實用程序顯示以下信息。

CPU:制造商,型號,頻率

主板:制造商,型號,BIOS版本,板載控制器

RAM: RAM大小,RAM類型(FP,EDO,SDRAM,DDRAM)

硬盤控制器: SCSI,IDE,板載/卡,型號,BIOS版本,芯片組

硬盤:類型,制造商,型號,大小,總線系統(tǒng)(SCSI,IDE),分區(qū)

CD-ROM驅(qū)動器:類型,制造商,型號,速度,內(nèi)部/外部,并行端口?

其他媒體: CD刻錄機(jī),流媒體(型號,制造商,SCSI / EIDE /軟盤流媒體,容量),ZIP驅(qū)動器,Jaz驅(qū)動器,MO驅(qū)動器,軟盤

顯卡:型號,制造商,芯片組,內(nèi)存(DRAM,VRAM),內(nèi)存大小

其他外圍設(shè)備:打印機(jī),并行端口,串行端口,調(diào)制解調(diào)器,ISDN卡

1)如何在Linux上安裝hwinfo

hwinfo軟件包在大多數(shù)Linux發(fā)行版存儲庫中都可用,并且可以在軟件包管理器的幫助下輕松安裝。

對于Fedora/RHEL 8/CentOS 8系統(tǒng),請使用DNF命令安裝hwinfo。

確保在RHEL/CentOS系統(tǒng)上運(yùn)行DNF命令之前,應(yīng)啟用EPEL存儲庫,因為hwinfo軟件包在發(fā)行官方存儲庫中不可用。

$ sudo dnf install hwinfo

對于Debian/Ubuntu系統(tǒng),請使用APT-GET命令或APT命令來安裝hwinfo。

$ sudo apt install hwinfo

對于Arch Linux基礎(chǔ)系統(tǒng),請使用Pacman命令安裝hwinfo。

$ sudo pacman -S hwinfo

對于RHEL/CentOS系統(tǒng),請使用YUM命令安裝hwinfo。

確保在RHEL / CentOS系統(tǒng)上運(yùn)行DNF命令之前,應(yīng)啟用EPEL存儲庫,因為hwinfo軟件包在發(fā)行官方存儲庫中不可用。

$ sudo yum install hwinfo

對于openSUSE Leap系統(tǒng),請使用Zypper命令安裝hwinfo。

$ sudo zypper install hwinfo

hwinfo的常規(guī)語法以下是hwinfo的常規(guī)語法。

hwinfo [OPTIONS] [HARDWARE_ITEM]

2)如何使用hwinfo命令在Linux上顯示所有硬件信息

運(yùn)行hwinfo不帶任何參數(shù)的命令,該命令顯示有關(guān)所有硬件單元的詳細(xì)信息,但是由于它顯示了有關(guān)硬件組件的詳細(xì)信息,因此很難理解。

另外,您可以給--all選項,并且兩者都顯示相同的結(jié)果。

$ sudo hwinfo

or

$ sudo hwinfo --all

============ start debug info ============

libhd version 21.68 (x86-64) [7688]

using /var/lib/hardware

kernel version is 4.19

----- /proc/cmdline -----

BOOT_IMAGE=/boot/vmlinuz-4.19-x86_64 root=UUID=69d9dd18-36be-4631-9ebb-78f05fe3217f rw quiet resume=UUID=a2092b92-af29-4760-8e68-7a201922573b

----- /proc/cmdline end -----

debug = 0xff7ffff7

probe = 0x15938fcdaa17fcf9fffe (+memory +pci +isapnp +net +floppy +misc +misc.serial +misc.par +misc.floppy +serial +cpu +bios +monitor +mouse +scsi +usb -usb.mods +modem +modem.usb +parallel +parallel.lp +parallel.zip -isa -isa.isdn +isdn +kbd +prom +sbus +int +braille +braille.alva +braille.fhp +braille.ht -ignx11 +sys -bios.vbe -isapnp.old -isapnp.new -isapnp.mod +braille.baum -manual +fb +pppoe -scan +pcmcia +fork -parallel.imm +s390 +cpuemu -sysfs -s390disks +udev +block +block.cdrom +block.part +edd +edd.mod -bios.ddc -bios.fb -bios.mode +input +block.mods +bios.vesa -cpuemu.debug -scsi.noserial +wlan -bios.crc -hal +bios.vram +bios.acpi -bios.ddc.ports=0 +modules.pata -net.eeprom +x86emu=dump -max -lxrc)

shm: attached segment 2129939 at 0x7ff3608d8000

>> hal.1: read hal data

>> floppy.1: get nvram

>> floppy.2: klog info

>> bios.1: cmdline

>> bios.1.1: apm

>> bios.2: ram

/dev/mem[0x400, 256]: mmap(, 4096,,,, 0x0) ok

/dev/mem[0xc0000, 262144]: mmap(, 262144,,,, 0xc0000) ok

bios: 2 disks

bios: 634k low mem

/dev/mem[0x9e800, 1]: mmap(, 4096,,,, 0x9e000) ok

/dev/mem[0x9e800, 2048]: mmap(, 4096,,,, 0x9e000) ok

bios: EBDA 0x00800 bytes at 0x9e800

>> bios.2: rom

----- SMBIOS Entry Point (sysfs) 0x00000 - 0x0001e -----

000 ?5f 53 4d 5f 59 1f 02 08 1f 01 00 00 00 00 00 00 ?"_SM_Y..........."

010 ?5f 44 4d 49 5f 96 23 0a e0 5f 0e 00 30 00 28 ?"_DMI_.#.._..0.("

----- SMBIOS Entry Point (sysfs) end -----

Found DMI table at 0x000e5fe0 (0x0a23 bytes)

Got DMI table from sysfs (0x0a23 bytes)

----- SMBIOS Structure Table 0xe5fe0 - 0xe6a02 -----

e5fe0 ?00 18 00 00 01 02 00 e0 03 5f 80 98 f9 4b 00 00 ?"........._...K.."

e5ff0 ?1a 00 03 0d 01 23 01 23 4c 45 4e 4f 56 4f 00 43 ?".....#.#LENOVO.C"

e6000 ?44 43 4e 33 35 57 57 00 30 33 2f 32 39 2f 32 30 ?"DCN35WW.03/29/20"

.

.

3)如何使用hwinfo命令在Linux上顯示系統(tǒng)硬件的摘要信息

它將打印有關(guān)硬件組件的簡短說明。

$ sudo hwinfo --short

cpu:

Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 1100 MHz

Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 1237 MHz

Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 1291 MHz

Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 2075 MHz

Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 1559 MHz

Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 1192 MHz

Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 1175 MHz

Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 1218 MHz

keyboard:

/dev/input/event5 ? ?Logitech Unifying Receiver

/dev/input/event4 ? ?AT Translated Set 2 keyboard

mouse:

/dev/input/mice ? ? ?Logitech Unifying Receiver

/dev/input/mice ? ? ?SynPS/2 Synaptics TouchPad

monitor:

LQ156D1JX03 LCD Monitor

graphics card:

nVidia GM107M [GeForce GTX 960M]

Intel HD Graphics 530

sound:

Intel 100 Series/C230 Series Chipset Family HD Audio Controller

storage:

Intel HM170/QM170 Chipset SATA Controller [AHCI Mode]

Samsung Electronics NVMe SSD Controller SM951/PM951

network:

enp9s0 ? ? ? ? ? ? ? Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

wlp8s0 ? ? ? ? ? ? ? Intel Dual Band Wireless-AC 8260

network interface:

enp9s0 ? ? ? ? ? ? ? Ethernet network interface

wlp8s0 ? ? ? ? ? ? ? Ethernet network interface

lo ? ? ? ? ? ? ? ? ? Loopback network interface

disk:

/dev/nvme0n1 ? ? ? ? Samsung Electronics NVMe SSD Controller SM951/PM951

/dev/sda ? ? ? ? ? ? WDC WD10SPCX-24H

partition:

/dev/nvme0n1p1 ? ? ? Partition

/dev/nvme0n1p2 ? ? ? Partition

/dev/sda1 ? ? ? ? ? ?Partition

/dev/sda2 ? ? ? ? ? ?Partition

usb controller:

Intel 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller

bios:

BIOS

bridge:

Intel 100 Series/C230 Series Chipset Family PCI Express Root Port #2

Intel HM170 Chipset LPC/eSPI Controller

Intel Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)

Intel 100 Series/C230 Series Chipset Family PCI Express Root Port #4

Intel Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers

Intel 100 Series/C230 Series Chipset Family PCI Express Root Port #9

Intel 100 Series/C230 Series Chipset Family PCI Express Root Port #3

hub:

Linux Foundation 2.0 root hub

Linux Foundation 3.0 root hub

memory:

Main Memory

bluetooth:

Intel Bluetooth Device

unknown:

FPU

DMA controller

PIC

Keyboard controller

PS/2 Controller

Intel 100 Series/C230 Series Chipset Family Power Management Controller

Intel 100 Series/C230 Series Chipset Family MEI Controller #1

O2 Micro SD/MMC Card Reader Controller

Intel 100 Series/C230 Series Chipset Family SMBus

/dev/input/event12 ? Syntek Lenovo EasyCamera

另外,您可以按以下方式過濾特定的硬件信息摘要。

$ sudo hwinfo --block --short

disk:

/dev/nvme0n1 ? ? ? ? Samsung Electronics NVMe SSD Controller SM951/PM951

/dev/sda ? ? ? ? ? ? WDC WD10SPCX-24H

partition:

/dev/nvme0n1p1 ? ? ? Partition

/dev/nvme0n1p2 ? ? ? Partition

/dev/sda1 ? ? ? ? ? ?Partition

/dev/sda2 ? ? ? ? ? ?Partition

4)如何使用hwinfo命令在Linux上顯示CPU信息

要僅顯示詳細(xì)的CPU信息,請--cpu在hwinfo命令中使用該選項。這包括處理器型號,供應(yīng)商,系統(tǒng)架構(gòu),時鐘速度和cpu緩存大小。

$ sudo hwinfo --cpu

01: None 00.0: 10103 CPU

[Created at cpu.462]

Unique ID: rdCR.j8NaKXDZtZ6

Hardware Class: cpu

Arch: X86-64

Vendor: "GenuineIntel"

Model: 6.94.3 "Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz"

Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,pdpe1gb,rdtscp,lm,constant_tsc,art,arch_perfmon,pebs,bts,rep_good,nopl,xtopology,nonstop_tsc,cpuid,aperfmperf,tsc_known_freq,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,est,tm2,ssse3,sdbg,fma,cx16,xtpr,pdcm,pcid,sse4_1,sse4_2,x2apic,movbe,popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,lahf_lm,abm,3dnowprefetch,cpuid_fault,epb,invpcid_single,pti,ssbd,ibrs,ibpb,stibp,tpr_shadow,vnmi,flexpriority,ept,vpid,ept_ad,fsgsbase,tsc_adjust,bmi1,hle,avx2,smep,bmi2,erms,invpcid,rtm,mpx,rdseed,adx,smap,clflushopt,intel_pt,xsaveopt,xsavec,xgetbv1,xsaves,dtherm,ida,arat,pln,pts,hwp,hwp_notify,hwp_act_window,hwp_epp,md_clear,flush_l1d

Clock: 2605 MHz

BogoMips: 5184.00

Cache: 6144 kb

Units/Processor: 16

Config Status: cfg=new, avail=yes, need=no, active=unknown

02: None 01.0: 10103 CPU

[Created at cpu.462]

Unique ID: wkFv.j8NaKXDZtZ6

Hardware Class: cpu

Arch: X86-64

Vendor: "GenuineIntel"

Model: 6.94.3 "Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz"

Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,pdpe1gb,rdtscp,lm,constant_tsc,art,arch_perfmon,pebs,bts,rep_good,nopl,xtopology,nonstop_tsc,cpuid,aperfmperf,tsc_known_freq,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,est,tm2,ssse3,sdbg,fma,cx16,xtpr,pdcm,pcid,sse4_1,sse4_2,x2apic,movbe,popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,lahf_lm,abm,3dnowprefetch,cpuid_fault,epb,invpcid_single,pti,ssbd,ibrs,ibpb,stibp,tpr_shadow,vnmi,flexpriority,ept,vpid,ept_ad,fsgsbase,tsc_adjust,bmi1,hle,avx2,smep,bmi2,erms,invpcid,rtm,mpx,rdseed,adx,smap,clflushopt,intel_pt,xsaveopt,xsavec,xgetbv1,xsaves,dtherm,ida,arat,pln,pts,hwp,hwp_notify,hwp_act_window,hwp_epp,md_clear,flush_l1d

Clock: 2633 MHz

BogoMips: 5184.00

Cache: 6144 kb

Units/Processor: 16

Config Status: cfg=new, avail=yes, need=no, active=unknown

.

.

.

08: None 07.0: 10103 CPU

[Created at cpu.462]

Unique ID: OPYj.j8NaKXDZtZ6

Hardware Class: cpu

Arch: X86-64

Vendor: "GenuineIntel"

Model: 6.94.3 "Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz"

Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,pdpe1gb,rdtscp,lm,constant_tsc,art,arch_perfmon,pebs,bts,rep_good,nopl,xtopology,nonstop_tsc,cpuid,aperfmperf,tsc_known_freq,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,est,tm2,ssse3,sdbg,fma,cx16,xtpr,pdcm,pcid,sse4_1,sse4_2,x2apic,movbe,popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,lahf_lm,abm,3dnowprefetch,cpuid_fault,epb,invpcid_single,pti,ssbd,ibrs,ibpb,stibp,tpr_shadow,vnmi,flexpriority,ept,vpid,ept_ad,fsgsbase,tsc_adjust,bmi1,hle,avx2,smep,bmi2,erms,invpcid,rtm,mpx,rdseed,adx,smap,clflushopt,intel_pt,xsaveopt,xsavec,xgetbv1,xsaves,dtherm,ida,arat,pln,pts,hwp,hwp_notify,hwp_act_window,hwp_epp,md_clear,flush_l1d

Clock: 2650 MHz

BogoMips: 5184.00

Cache: 6144 kb

Units/Processor: 16

Config Status: cfg=new, avail=yes, need=no, active=unknown

5)如何使用hwinfo命令在Linux上顯示網(wǎng)絡(luò)接口信息

要僅顯示詳細(xì)的網(wǎng)絡(luò)接口信息,請--network在hwinfo命令中使用該選項。

$ sudo hwinfo --network

28: None 00.0: 10701 Ethernet

[Created at net.126]

Unique ID: qzC0.ndpeucax6V1

Parent ID: 9Ky7.AJPR6upK_K2

SysFS ID: /class/net/enp9s0

SysFS Device Link: /devices/pci0000:00/0000:00:1c.3/0000:09:00.0

Hardware Class: network interface

Model: "Ethernet network interface"

Driver: "r8168"

Driver Modules: "r8168"

Device File: enp9s0

HW Address: c8:5b:76:4d:d4:5c

Permanent HW Address: c8:5b:76:4d:d4:5c

Link detected: no

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #4 (Ethernet controller)

29: None 00.0: 10701 Ethernet

[Created at net.126]

Unique ID: ARo+.ndpeucax6V1

Parent ID: VnX7.31oP+rtGKzC

SysFS ID: /class/net/wlp8s0

SysFS Device Link: /devices/pci0000:00/0000:00:1c.2/0000:08:00.0

Hardware Class: network interface

Model: "Ethernet network interface"

Driver: "iwlwifi"

Driver Modules: "iwlwifi"

Device File: wlp8s0

HW Address: e4:a7:a0:32:fc:e9

Permanent HW Address: e4:a7:a0:32:fc:e9

Link detected: yes

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #7 (Ethernet controller)

30: None 00.0: 10700 Loopback

[Created at net.126]

Unique ID: ZsBS.GQNx7L4uPNA

SysFS ID: /class/net/lo

Hardware Class: network interface

Model: "Loopback network interface"

Device File: lo

Link detected: yes

Config Status: cfg=new, avail=yes, need=no, active=unknown

6)如何使用hwinfo命令在Linux上顯示網(wǎng)卡信息

要僅顯示詳細(xì)的網(wǎng)卡信息,請--netcard在hwinfo命令中使用該選項。

$ sudo hwinfo --netcard

10: PCI 900.0: 0200 Ethernet controller

[Created at pci.386]

Unique ID: 9Ky7.AJPR6upK_K2

Parent ID: Z7uZ.KKaZqjE74P3

SysFS ID: /devices/pci0000:00/0000:00:1c.3/0000:09:00.0

SysFS BusID: 0000:09:00.0

Hardware Class: network

Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"

Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."

Device: pci 0x8168 "RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"

SubVendor: pci 0x17aa "Lenovo"

SubDevice: pci 0x3831

Revision: 0x15

Driver: "r8168"

Driver Modules: "r8168"

Device File: enp9s0

I/O Ports: 0x4000-0x4fff (rw)

Memory Range: 0x94104000-0x94104fff (rw,non-prefetchable)

Memory Range: 0x94100000-0x94103fff (rw,non-prefetchable)

IRQ: 139 (no events)

HW Address: c8:5b:76:4d:d4:5c

Permanent HW Address: c8:5b:76:4d:d4:5c

Link detected: no

Module Alias: "pci:v000010ECd00008168sv000017AAsd00003831bc02sc00i00"

Driver Info #0:

Driver Status: r8169 is not active

Driver Activation Cmd: "modprobe r8169"

Driver Info #1:

Driver Status: r8168 is active

Driver Activation Cmd: "modprobe r8168"

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #18 (PCI bridge)

13: PCI 800.0: 0282 WLAN controller

[Created at pci.386]

Unique ID: VnX7.5U5jxg3LUR0

Parent ID: hoOk.pvdpL97QY03

SysFS ID: /devices/pci0000:00/0000:00:1c.2/0000:08:00.0

SysFS BusID: 0000:08:00.0

Hardware Class: network

Model: "Intel Dual Band Wireless-AC 8260"

Vendor: pci 0x8086 "Intel Corporation"

Device: pci 0x24f3 "Wireless 8260"

SubVendor: pci 0x8086 "Intel Corporation"

SubDevice: pci 0x1010 "Dual Band Wireless-AC 8260"

Revision: 0x3a

Driver: "iwlwifi"

Driver Modules: "iwlwifi"

Device File: wlp8s0

Features: WLAN

Memory Range: 0x94200000-0x94201fff (rw,non-prefetchable)

IRQ: 141 (376425 events)

HW Address: e4:a7:a0:32:fc:e9

Permanent HW Address: e4:a7:a0:32:fc:e9

Link detected: yes

WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140

WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.5 5.52 5.54 5.56 5.58 5.6 5.62 5.64 5.66 5.68 5.7

WLAN encryption modes: WEP40 WEP104 TKIP CCMP

WLAN authentication modes: open sharedkey wpa-psk wpa-eap

Module Alias: "pci:v00008086d000024F3sv00008086sd00001010bc02sc80i00"

Driver Info #0:

Driver Status: iwlwifi is active

Driver Activation Cmd: "modprobe iwlwifi"

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #25 (PCI bridge)

7)如何使用hwinfo命令在Linux上顯示磁盤信息

要僅顯示詳細(xì)的硬盤信息,請--disk在hwinfo命令中使用該選項。它包括設(shè)備文件名,設(shè)備文件路徑,bois ID,設(shè)備號等。

$ sudo hwinfo --disk

21: PCI 00.0: 10600 Disk

[Created at block.245]

Unique ID: wLCS.8qcPkkehlG5

Parent ID: cuhJ.bG_CoARfDl8

SysFS ID: /class/block/nvme0n1

SysFS BusID: nvme0

SysFS Device Link: /devices/pci0000:00/0000:00:1d.0/0000:0a:00.0/nvme/nvme0

Hardware Class: disk

Model: "Samsung Electronics NVMe SSD Controller SM951/PM951"

Vendor: pci 0x144d "Samsung Electronics Co Ltd"

Device: pci 0xa802 "NVMe SSD Controller SM951/PM951"

SubVendor: pci 0x144d "Samsung Electronics Co Ltd"

SubDevice: pci 0xa801

Driver: "nvme"

Driver Modules: "nvme"

Device File: /dev/nvme0n1

Device Files: /dev/nvme0n1, /dev/disk/by-id/nvme-SAMSUNG_MZVLV256HCHP-000L2_S27WNX0H825853, /dev/disk/by-path/pci-0000:0a:00.0-nvme-1, /dev/disk/by-id/nvme-nvme.144d-533237574e583048383235383533-53414d53554e47204d5a564c56323536484348502d3030304c32-00000001

Device Number: block 259:0

Geometry (Logical): CHS 244198/64/32

Size: 500118192 sectors a 512 bytes

Capacity: 238 GB (256060514304 bytes)

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #11 (Non-Volatile memory controller)

22: IDE 200.0: 10600 Disk

[Created at block.245]

Unique ID: 3OOL.ZmzURTCA6R5

Parent ID: abAj.2LUt5+ExdH3

SysFS ID: /class/block/sda

SysFS BusID: 2:0:0:0

SysFS Device Link: /devices/pci0000:00/0000:00:17.0/ata3/host2/target2:0:0/2:0:0:0

Hardware Class: disk

Model: "WDC WD10SPCX-24H"

Vendor: "WDC"

Device: "WD10SPCX-24H"

Revision: "1A02"

Serial ID: "WD-WXD1A36RE0LP"

Driver: "ahci", "sd"

Driver Modules: "ahci", "sd_mod"

Device File: /dev/sda

Device Files: /dev/sda, /dev/disk/by-id/wwn-0x50014ee65c0cfab4, /dev/disk/by-id/ata-WDC_WD10SPCX-24HWST1_WD-WXD1A36RE0LP, /dev/disk/by-path/pci-0000:00:17.0-ata-3

Device Number: block 8:0-8:15

Geometry (Logical): CHS 121601/255/63

Size: 1953525168 sectors a 512 bytes

Capacity: 931 GB (1000204886016 bytes)

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #2 (SATA controller)

8)如何使用hwinfo命令在Linux上顯示分區(qū)信息

要僅顯示詳細(xì)的硬盤分區(qū)信息,請--partition在hwinfo命令中使用該選項。

$ sudo hwinfo --partition

22: None 00.0: 11300 Partition

[Created at block.434]

Unique ID: cS_q.SE1wIdpsiiC

Parent ID: wLCS.8qcPkkehlG5

SysFS ID: /class/block/nvme0n1/nvme0n1p1

Hardware Class: partition

Model: "Partition"

Device File: /dev/nvme0n1p1

Device Files: /dev/nvme0n1p1, /dev/disk/by-id/nvme-nvme.144d-533237574e583048383235383533-53414d53554e47204d5a564c56323536484348502d3030304c32-00000001-part1, /dev/disk/by-partuuid/3000191b-01, /dev/disk/by-uuid/69d9dd18-36be-4631-9ebb-78f05fe3217f, /dev/disk/by-path/pci-0000:0a:00.0-nvme-1-part1, /dev/disk/by-id/nvme-SAMSUNG_MZVLV256HCHP-000L2_S27WNX0H825853-part1

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #21 (Disk)

23: None 00.0: 11300 Partition

[Created at block.434]

Unique ID: 3eEv.SE1wIdpsiiC

Parent ID: wLCS.8qcPkkehlG5

SysFS ID: /class/block/nvme0n1/nvme0n1p2

Hardware Class: partition

Model: "Partition"

Device File: /dev/nvme0n1p2

Device Files: /dev/nvme0n1p2, /dev/disk/by-partuuid/3000191b-02, /dev/disk/by-id/nvme-nvme.144d-533237574e583048383235383533-53414d53554e47204d5a564c56323536484348502d3030304c32-00000001-part2, /dev/disk/by-uuid/a2092b92-af29-4760-8e68-7a201922573b, /dev/disk/by-path/pci-0000:0a:00.0-nvme-1-part2, /dev/disk/by-id/nvme-SAMSUNG_MZVLV256HCHP-000L2_S27WNX0H825853-part2

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #21 (Disk)

25: None 00.0: 11300 Partition

[Created at block.434]

Unique ID: bdUI.SE1wIdpsiiC

Parent ID: 3OOL.ZmzURTCA6R5

SysFS ID: /class/block/sda/sda1

Hardware Class: partition

Model: "Partition"

Device File: /dev/sda1

Device Files: /dev/sda1, /dev/disk/by-id/ata-WDC_WD10SPCX-24HWST1_WD-WXD1A36RE0LP-part1, /dev/disk/by-partlabel/Microsoftx20reservedx20partition, /dev/disk/by-id/wwn-0x50014ee65c0cfab4-part1, /dev/disk/by-partuuid/41fdd500-aed7-4574-9f4d-908a8a444a9f, /dev/disk/by-path/pci-0000:00:17.0-ata-3-part1

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #24 (Disk)

26: None 00.0: 11300 Partition

[Created at block.434]

Unique ID: 2pkM.SE1wIdpsiiC

Parent ID: 3OOL.ZmzURTCA6R5

SysFS ID: /class/block/sda/sda2

Hardware Class: partition

Model: "Partition"

Device File: /dev/sda2

Device Files: /dev/sda2, /dev/disk/by-uuid/480AF3410AF32A98, /dev/disk/by-id/ata-WDC_WD10SPCX-24HWST1_WD-WXD1A36RE0LP-part2, /dev/disk/by-path/pci-0000:00:17.0-ata-3-part2, /dev/disk/by-partuuid/819eef31-7326-44a9-b294-87ecb29f1869, /dev/disk/by-partlabel/Basicx20datax20partition, /dev/disk/by-label/DATA, /dev/disk/by-id/wwn-0x50014ee65c0cfab4-part2

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #24 (Disk)

9)如何使用hwinfo命令在Linux上顯示USB設(shè)備控制器信息

要顯示詳細(xì)的USB設(shè)備信息,請--usb在hwinfo命令中使用該選項。

$ sudo hwinfo --usb

03: USB 00.0: 0000 Unclassified device

[Created at usb.122]

Unique ID: MtLc.kyeWJxUnIlB

Parent ID: k4bc.2DFUsyrieMD

SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0

SysFS BusID: 1-6:1.0

Hardware Class: unknown

Model: "Syntek Lenovo EasyCamera"

Hotplug: USB

Vendor: usb 0x174f "Syntek"

Device: usb 0x14e8 "Lenovo EasyCamera"

Revision: "12.18"

Serial ID: "200901010001"

Driver: "uvcvideo"

Driver Modules: "uvcvideo"

Device File: /dev/input/event12

Device Files: /dev/input/event12, /dev/input/by-id/usb-160709000341_Lenovo_EasyCamera_200901010001-event-if00, /dev/input/by-path/pci-0000:00:14.0-usb-0:6:1.0-event

Device Number: char 13:76

Speed: 480 Mbps

Module Alias: "usb:v174Fp14E8d1218dcEFdsc02dp01ic0Eisc01ip00in00"

Driver Info #0:

Driver Status: uvcvideo is active

Driver Activation Cmd: "modprobe uvcvideo"

Config Status: cfg=new, avail=yes, need=no, active=unknown

Attached to: #6 (Hub)

.

.

10: USB 00.0: 10a00 Hub

[Created at usb.122]

Unique ID: pBe4.xYNhIwdOaa6

SysFS ID: /devices/pci0000:00/0000:00:14.0/usb2/2-0:1.0

SysFS BusID: 2-0:1.0

Hardware Class: hub

Model: "Linux Foundation 3.0 root hub"

Hotplug: USB

Vendor: usb 0x1d6b "Linux Foundation"

Device: usb 0x0003 "3.0 root hub"

Revision: "4.19"

Serial ID: "0000:00:14.0"

Driver: "hub"

Driver Modules: "usbcore"

Module Alias: "usb:v1D6Bp0003d0419dc09dsc00dp03ic09isc00ip00in00"

Config Status: cfg=new, avail=yes, need=no, active=unknown

10)如何使用hwinfo命令在Linux上顯示內(nèi)存信息

要顯示詳細(xì)的詳細(xì)內(nèi)存信息,請--memory在hwinfo命令中使用該選項。

$ sudo hwinfo --memory

01: None 00.0: 10102 Main Memory

[Created at memory.74]

Unique ID: rdCR.CxwsZFjVASF

Hardware Class: memory

Model: "Main Memory"

Memory Range: 0x00000000-0x3dfbd5fff (rw)

Memory Size: 15 GB

Config Status: cfg=new, avail=yes, need=no, active=unknown

11)如何在Linux上使用hwinfo命令顯示PCI設(shè)備控制器信息

要顯示詳細(xì)的pci設(shè)備信息,請--pci在hwinfo命令中使用該選項。

$ sudo hwinfo --pci

07: PCI 17.0: 0106 SATA controller (AHCI 1.0)

[Created at pci.386]

Unique ID: abAj.2LUt5+ExdH3

SysFS ID: /devices/pci0000:00/0000:00:17.0

SysFS BusID: 0000:00:17.0

Hardware Class: storage

Model: "Intel HM170/QM170 Chipset SATA Controller [AHCI Mode]"

Vendor: pci 0x8086 "Intel Corporation"

Device: pci 0xa103 "HM170/QM170 Chipset SATA Controller [AHCI Mode]"

SubVendor: pci 0x17aa "Lenovo"

SubDevice: pci 0x3802

Revision: 0x31

Driver: "ahci"

Driver Modules: "ahci"

Memory Range: 0x94428000-0x94429fff (rw,non-prefetchable)

Memory Range: 0x9442d000-0x9442d0ff (rw,non-prefetchable)

I/O Ports: 0x6080-0x6087 (rw)

I/O Ports: 0x6088-0x608b (rw)

I/O Ports: 0x6060-0x607f (rw)

Memory Range: 0x9442b000-0x9442b7ff (rw,non-prefetchable)

IRQ: 138 (425 events)

Module Alias: "pci:v00008086d0000A103sv000017AAsd00003802bc01sc06i01"

Driver Info #0:

Driver Status: ahci is active

Driver Activation Cmd: "modprobe ahci"

Config Status: cfg=new, avail=yes, need=no, active=unknown

.

.

25: PCI 1c.2: 0604 PCI bridge (Normal decode)

[Created at pci.386]

Unique ID: hoOk.pvdpL97QY03

SysFS ID: /devices/pci0000:00/0000:00:1c.2

SysFS BusID: 0000:00:1c.2

Hardware Class: bridge

Model: "Intel 100 Series/C230 Series Chipset Family PCI Express Root Port #3"

Vendor: pci 0x8086 "Intel Corporation"

Device: pci 0xa112 "100 Series/C230 Series Chipset Family PCI Express Root Port #3"

SubVendor: pci 0x17aa "Lenovo"

SubDevice: pci 0x3802

Revision: 0xf1

Driver: "pcieport"

IRQ: 124 (no events)

Module Alias: "pci:v00008086d0000A112sv000017AAsd00003802bc06sc04i00"

Config Status: cfg=new, avail=yes, need=no, active=unknown

12)如何將hwinfo輸出導(dǎo)出到文件

hwinfo提供了log選項,該選項用于將hwinfo輸出存儲在文件中以供以后分析。如果要導(dǎo)出特定的硬件信息輸出,則可以指定- 選項。

$ sudo hwinfo --log hwinfo.txt

13)如何訪問hwinfo幫助頁面

要了解有關(guān)hwinfo的更多信息,請轉(zhuǎn)到hwinfo幫助部分或手冊頁。

$ hwinfo --help

總結(jié)

以上是生活随笔為你收集整理的linux 系统硬件信息检测工具,在Linux上查找系统hwinfo硬件信息工具的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。