使用lshw读取硬件信息
lshw是一个读取硬件信息的命令行工具。
安装lshw
archlinux默认并没有安装 lshw
,你需要手工安装
sudo pacman -S lshw
使用lshw
注意: 由于lshw需要读取硬件信息,因此需要使用root权限
列出硬件信息
直接运行lshw就能列出本机上的硬件信息了:
sudo lshw
结果为:
f31 description: Notebook product: F31 vendor: Lenovo version: Rev 1.0 serial: CW4075103B4ANSN width: 4294967295 bits capabilities: smbios-2.4 dmi-2.4 smp vsyscall32 configuration: boot=oem-specific chassis=notebook uuid=7E7411D5-CE02-3C28-A38E-E41BF2300343 *-core description: Motherboard product: F31 vendor: Lenovo physical id: 0 version: Rev 1.0 *-firmware description: BIOS vendor: Lenovo physical id: 0 version: Q3B72 date: 08/22/2007 size: 102KiB capacity: 960KiB capabilities: isa pci pcmcia pnp upgrade shadowing escd cdboot bootselect int5printscreen int9keyboard int14serial int17printer acpi usb agp smartbattery biosbootspecification netboot *-cpu description: CPU product: Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz vendor: Intel Corp. physical id: 4 bus info: cpu@0 version: CPU Version slot: U2E1 size: 1596MHz capacity: 1600MHz width: 64 bits clock: 533MHz capabilities: fpu fpu_exception wp 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 x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm pti dtherm cpufreq *-cache:0 description: L1 cache physical id: 5 slot: L1 Cache size: 64KiB capacity: 64KiB capabilities: asynchronous internal write-back configuration: level=1 *-cache:1 description: L2 cache physical id: 6 slot: L2 Cache size: 1MiB capacity: 1MiB capabilities: burst internal write-back configuration: level=2 *-memory description: System Memory physical id: 12 slot: System board or motherboard size: 4GiB *-bank:0 description: DIMM DDR2 Synchronous 533 MHz (1.9 ns) physical id: 0 serial: 00000000 slot: DIMM 1 size: 2GiB width: 64 bits clock: 533MHz (1.9ns) *-bank:1 description: DIMM DDR2 Synchronous 533 MHz (1.9 ns) physical id: 1 serial: 76767E14 slot: DIMM 2 size: 2GiB width: 64 bits clock: 533MHz (1.9ns) *-pci description: Host bridge product: Mobile PM965/GM965/GL960 Memory Controller Hub vendor: Intel Corporation physical id: 100 bus info: pci@0000:00:00.0 version: 03 width: 32 bits clock: 33MHz *-display:0 description: VGA compatible controller product: Mobile GM965/GL960 Integrated Graphics Controller (primary) vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 03 width: 64 bits clock: 33MHz capabilities: msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:16 memory:f8000000-f80fffff memory:d0000000-dfffffff ioport:1800(size=8) memory:c0000-dffff *-display:1 UNCLAIMED description: Display controller product: Mobile GM965/GL960 Integrated Graphics Controller (secondary) vendor: Intel Corporation physical id: 2.1 bus info: pci@0000:00:02.1 version: 03 width: 64 bits clock: 33MHz capabilities: pm bus_master cap_list configuration: latency=0 resources: memory:f8100000-f81fffff *-usb:0 description: USB controller product: 82801H (ICH8 Family) USB UHCI Controller #4 vendor: Intel Corporation physical id: 1a bus info: pci@0000:00:1a.0 version: 03 width: 32 bits clock: 33MHz capabilities: uhci bus_master configuration: driver=uhci_hcd latency=0 resources: irq:16 ioport:1820(size=32) *-usbhost product: UHCI Host Controller vendor: Linux 4.15.5-1-ARCH uhci_hcd physical id: 1 bus info: usb@3 logical name: usb3 version: 4.15 capabilities: usb-1.10 configuration: driver=hub slots=2 speed=12Mbit/s *-usb:1 description: USB controller product: 82801H (ICH8 Family) USB UHCI Controller #5 vendor: Intel Corporation physical id: 1a.1 bus info: pci@0000:00:1a.1 version: 03 width: 32 bits clock: 33MHz capabilities: uhci bus_master configuration: driver=uhci_hcd latency=0 resources: irq:21 ioport:1840(size=32) *-usbhost product: UHCI Host Controller vendor: Linux 4.15.5-1-ARCH uhci_hcd physical id: 1 bus info: usb@4 logical name: usb4 version: 4.15 capabilities: usb-1.10 configuration: driver=hub slots=2 speed=12Mbit/s *-usb:2 description: USB controller product: 82801H (ICH8 Family) USB2 EHCI Controller #2 vendor: Intel Corporation physical id: 1a.7 bus info: pci@0000:00:1a.7 version: 03 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci-pci latency=0 resources: irq:18 memory:f8704800-f8704bff *-usbhost product: EHCI Host Controller vendor: Linux 4.15.5-1-ARCH ehci_hcd physical id: 1 bus info: usb@1 logical name: usb1 version: 4.15 capabilities: usb-2.00 configuration: driver=hub slots=4 speed=480Mbit/s *-multimedia description: Audio device product: 82801H (ICH8 Family) HD Audio Controller vendor: Intel Corporation physical id: 1b bus info: pci@0000:00:1b.0 version: 03 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=snd_hda_intel latency=0 resources: irq:25 memory:f8500000-f8503fff *-pci:0 description: PCI bridge product: 82801H (ICH8 Family) PCI Express Port 1 vendor: Intel Corporation physical id: 1c bus info: pci@0000:00:1c.0 version: 03 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:17 ioport:3000(size=4096) memory:f8300000-f83fffff ioport:f8800000(size=2097152) *-network description: Network controller product: BCM4311 802.11b/g WLAN vendor: Broadcom Limited physical id: 0 bus info: pci@0000:02:00.0 version: 01 width: 32 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=b43-pci-bridge latency=0 resources: irq:16 memory:f8300000-f8303fff *-pci:1 description: PCI bridge product: 82801H (ICH8 Family) PCI Express Port 2 vendor: Intel Corporation physical id: 1c.1 bus info: pci@0000:00:1c.1 version: 03 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:16 ioport:2000(size=4096) memory:f4000000-f7ffffff ioport:f0000000(size=67108864) *-pci:2 description: PCI bridge product: 82801H (ICH8 Family) PCI Express Port 6 vendor: Intel Corporation physical id: 1c.5 bus info: pci@0000:00:1c.5 version: 03 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:16 ioport:4000(size=4096) memory:f8200000-f82fffff ioport:f8a00000(size=2097152) *-network description: Ethernet interface product: NetLink BCM5906M Fast Ethernet PCI Express vendor: Broadcom Limited physical id: 0 bus info: pci@0000:06:00.0 logical name: enp6s0 version: 02 serial: 00:1b:24:d4:f2:70 capacity: 100Mbit/s width: 64 bits clock: 33MHz capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=sb v3.04 latency=0 link=no multicast=yes port=twisted pair resources: irq:26 memory:f8200000-f820ffff *-usb:3 description: USB controller product: 82801H (ICH8 Family) USB UHCI Controller #1 vendor: Intel Corporation physical id: 1d bus info: pci@0000:00:1d.0 version: 03 width: 32 bits clock: 33MHz capabilities: uhci bus_master configuration: driver=uhci_hcd latency=0 resources: irq:23 ioport:1860(size=32) *-usbhost product: UHCI Host Controller vendor: Linux 4.15.5-1-ARCH uhci_hcd physical id: 1 bus info: usb@5 logical name: usb5 version: 4.15 capabilities: usb-1.10 configuration: driver=hub slots=2 speed=12Mbit/s *-usb:4 description: USB controller product: 82801H (ICH8 Family) USB UHCI Controller #2 vendor: Intel Corporation physical id: 1d.1 bus info: pci@0000:00:1d.1 version: 03 width: 32 bits clock: 33MHz capabilities: uhci bus_master configuration: driver=uhci_hcd latency=0 resources: irq:19 ioport:1880(size=32) *-usbhost product: UHCI Host Controller vendor: Linux 4.15.5-1-ARCH uhci_hcd physical id: 1 bus info: usb@6 logical name: usb6 version: 4.15 capabilities: usb-1.10 configuration: driver=hub slots=2 speed=12Mbit/s *-usb description: Mouse product: USB Optical Mouse vendor: IBM Corp. physical id: 1 bus info: usb@6:1 version: 2.00 capabilities: usb-2.00 configuration: driver=usbhid maxpower=100mA speed=2Mbit/s *-usb:5 description: USB controller product: 82801H (ICH8 Family) USB UHCI Controller #3 vendor: Intel Corporation physical id: 1d.2 bus info: pci@0000:00:1d.2 version: 03 width: 32 bits clock: 33MHz capabilities: uhci bus_master configuration: driver=uhci_hcd latency=0 resources: irq:18 ioport:18a0(size=32) *-usbhost product: UHCI Host Controller vendor: Linux 4.15.5-1-ARCH uhci_hcd physical id: 1 bus info: usb@7 logical name: usb7 version: 4.15 capabilities: usb-1.10 configuration: driver=hub slots=2 speed=12Mbit/s *-usb:6 description: USB controller product: 82801H (ICH8 Family) USB2 EHCI Controller #1 vendor: Intel Corporation physical id: 1d.7 bus info: pci@0000:00:1d.7 version: 03 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci-pci latency=0 resources: irq:23 memory:f8704c00-f8704fff *-usbhost product: EHCI Host Controller vendor: Linux 4.15.5-1-ARCH ehci_hcd physical id: 1 bus info: usb@2 logical name: usb2 version: 4.15 capabilities: usb-2.00 configuration: driver=hub slots=6 speed=480Mbit/s *-usb:0 description: Generic USB device product: 802.11n NIC vendor: Realtek physical id: 1 bus info: usb@2:1 version: 0.00 serial: 00E04C0001 capabilities: usb-2.00 configuration: driver=r8188eu maxpower=500mA speed=480Mbit/s *-usb:1 description: Mass storage device product: OnlyDisk vendor: Netac physical id: 2 bus info: usb@2:2 version: 10.75 serial: 000000000000000255 capabilities: usb-2.10 scsi configuration: driver=usb-storage maxpower=200mA speed=480Mbit/s *-usb:2 description: Video product: Lenovo EasyCamera vendor: SuYin physical id: 4 bus info: usb@2:4 version: 1.00 serial: CN1314-MI09-VL-R01.00.00 capabilities: usb-2.00 configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s *-pci:3 description: PCI bridge product: 82801 Mobile PCI Bridge vendor: Intel Corporation physical id: 1e bus info: pci@0000:00:1e.0 version: f3 width: 32 bits clock: 33MHz capabilities: pci subtractive_decode bus_master cap_list resources: memory:f8400000-f84fffff *-firewire description: FireWire (IEEE 1394) product: R5C832 IEEE 1394 Controller vendor: Ricoh Co Ltd physical id: 9 bus info: pci@0000:07:09.0 version: 05 width: 32 bits clock: 33MHz capabilities: pm ohci bus_master cap_list configuration: driver=firewire_ohci latency=32 maxlatency=4 mingnt=2 resources: irq:20 memory:f8400000-f84007ff *-generic:0 description: SD Host controller product: R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter vendor: Ricoh Co Ltd physical id: 9.1 bus info: pci@0000:07:09.1 version: 22 width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list configuration: driver=sdhci-pci latency=32 resources: irq:21 memory:f8400800-f84008ff *-generic:1 description: System peripheral product: R5C592 Memory Stick Bus Host Adapter vendor: Ricoh Co Ltd physical id: 9.2 bus info: pci@0000:07:09.2 version: 12 width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list configuration: driver=r592 latency=32 resources: irq:21 memory:f8401000-f84010ff *-generic:2 description: System peripheral product: xD-Picture Card Controller vendor: Ricoh Co Ltd physical id: 9.3 bus info: pci@0000:07:09.3 version: 12 width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list configuration: driver=r852 latency=32 resources: irq:21 memory:f8401400-f84014ff *-isa description: ISA bridge product: 82801HM (ICH8M) LPC Interface Controller vendor: Intel Corporation physical id: 1f bus info: pci@0000:00:1f.0 version: 03 width: 32 bits clock: 33MHz capabilities: isa bus_master cap_list configuration: driver=lpc_ich latency=0 resources: irq:0 *-ide description: IDE interface product: 82801HM/HEM (ICH8M/ICH8M-E) IDE Controller vendor: Intel Corporation physical id: 1f.1 bus info: pci@0000:00:1f.1 version: 03 width: 32 bits clock: 33MHz capabilities: ide bus_master configuration: driver=ata_piix latency=0 resources: irq:19 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:1810(size=16) *-storage description: SATA controller product: 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] vendor: Intel Corporation physical id: 1f.2 bus info: pci@0000:00:1f.2 version: 03 width: 32 bits clock: 66MHz capabilities: storage msi pm ahci_1.0 bus_master cap_list configuration: driver=ahci latency=0 resources: irq:24 ioport:1c00(size=8) ioport:18d4(size=4) ioport:18d8(size=8) ioport:18d0(size=4) ioport:18e0(size=32) memory:f8704000-f87047ff *-serial description: SMBus product: 82801H (ICH8 Family) SMBus Controller vendor: Intel Corporation physical id: 1f.3 bus info: pci@0000:00:1f.3 version: 03 width: 32 bits clock: 33MHz configuration: driver=i801_smbus latency=0 resources: irq:19 memory:f8504000-f85040ff ioport:1c20(size=32) *-battery description: Lithium Ion Battery product: 35329 vendor: SANYO physical id: 1 version: 06 serial: 2007/12/10 slot: In the Back side capacity: 4800mWh configuration: voltage=11.1V *-scsi physical id: 2 bus info: scsi@5 logical name: scsi5 capabilities: scsi-host configuration: driver=usb-storage *-network:0 description: Ethernet interface physical id: 3 logical name: lxdbr0 serial: ce:9c:c2:41:4f:ad capabilities: ethernet physical configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=10.235.44.1 link=yes multicast=yes *-network:1 description: Wireless interface physical id: 4 bus info: usb@2:1 logical name: wlp0s29f7u1 serial: 3c:46:d8:4f:ca:24 capabilities: ethernet physical wireless configuration: broadcast=yes driver=r8188eu ip=192.4.4.13 multicast=yes wireless=IEEE 802.11bgn *-network:2 description: Ethernet interface physical id: 5 logical name: docker0 serial: 02:42:d7:d3:55:ba capabilities: ethernet physical configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes
若你觉得输出很乱,其实 lshw
也提供了一个GUI界面给你使用。
lshw -X
让lshw现实SCSI,USB,IDE和PCI设备的信息
通过 -businfo
可以获取主线信息
sudo lshw -businfo
结果为:
Bus info Device Class Description
======================================================
system F31
bus F31
memory 102KiB BIOS
cpu@0 processor Intel(R) Pentium(R) Dual CPU T2330
memory 64KiB L1 cache
memory 1MiB L2 cache
memory 4GiB System Memory
memory 2GiB DIMM DDR2 Synchronous 533 MHz (1
memory 2GiB DIMM DDR2 Synchronous 533 MHz (1
pci@0000:00:00.0 bridge Mobile PM965/GM965/GL960 Memory Contr
pci@0000:00:02.0 display Mobile GM965/GL960 Integrated Graphic
pci@0000:00:02.1 display Mobile GM965/GL960 Integrated Graphic
pci@0000:00:1a.0 bus 82801H (ICH8 Family) USB UHCI Control
usb@3 usb3 bus UHCI Host Controller
pci@0000:00:1a.1 bus 82801H (ICH8 Family) USB UHCI Control
usb@4 usb4 bus UHCI Host Controller
pci@0000:00:1a.7 bus 82801H (ICH8 Family) USB2 EHCI Contro
usb@1 usb1 bus EHCI Host Controller
pci@0000:00:1b.0 multimedia 82801H (ICH8 Family) HD Audio Control
pci@0000:00:1c.0 bridge 82801H (ICH8 Family) PCI Express Port
pci@0000:02:00.0 network BCM4311 802.11b/g WLAN
pci@0000:00:1c.1 bridge 82801H (ICH8 Family) PCI Express Port
pci@0000:00:1c.5 bridge 82801H (ICH8 Family) PCI Express Port
pci@0000:06:00.0 enp6s0 network NetLink BCM5906M Fast Ethernet PCI Ex
pci@0000:00:1d.0 bus 82801H (ICH8 Family) USB UHCI Control
usb@5 usb5 bus UHCI Host Controller
pci@0000:00:1d.1 bus 82801H (ICH8 Family) USB UHCI Control
usb@6 usb6 bus UHCI Host Controller
usb@6:1 input USB Optical Mouse
pci@0000:00:1d.2 bus 82801H (ICH8 Family) USB UHCI Control
usb@7 usb7 bus UHCI Host Controller
pci@0000:00:1d.7 bus 82801H (ICH8 Family) USB2 EHCI Contro
usb@2 usb2 bus EHCI Host Controller
usb@2:1 generic 802.11n NIC
usb@2:2 storage OnlyDisk
usb@2:4 multimedia Lenovo EasyCamera
pci@0000:00:1e.0 bridge 82801 Mobile PCI Bridge
pci@0000:07:09.0 bus R5C832 IEEE 1394 Controller
pci@0000:07:09.1 generic R5C822 SD/SDIO/MMC/MS/MSPro Host Adap
pci@0000:07:09.2 generic R5C592 Memory Stick Bus Host Adapter
pci@0000:07:09.3 generic xD-Picture Card Controller
pci@0000:00:1f.0 bridge 82801HM (ICH8M) LPC Interface Control
pci@0000:00:1f.1 storage 82801HM/HEM (ICH8M/ICH8M-E) IDE Contr
pci@0000:00:1f.2 storage 82801HM/HEM (ICH8M/ICH8M-E) SATA Cont
pci@0000:00:1f.3 bus 82801H (ICH8 Family) SMBus Controller
power 35329
scsi@5 scsi5 storage
lxdbr0 network Ethernet interface
usb@2:1 wlp0s29f7u1 network Wireless interface
docker0 network Ethernet interface
指定lshw输出信息的格式
lshw可以将信息以html,xml或json的格式进行输出:
# lshw -html # lshw -xml lshw -json
结果为:
{ "id" : "f31", "class" : "system", "claimed" : true, "handle" : "DMI:0001", "description" : "Notebook", "product" : "F31", "vendor" : "Lenovo", "version" : "Rev 1.0", "serial" : "CW4075103B4ANSN", "width" : 4294967295, "configuration" : { "boot" : "oem-specific", "chassis" : "notebook", "uuid" : "7E7411D5-CE02-3C28-A38E-E41BF2300343" }, "capabilities" : { "smbios-2.4" : "SMBIOS version 2.4", "dmi-2.4" : "DMI version 2.4", "smp" : "Symmetric Multi-Processing", "vsyscall32" : "32-bit processes" }, "children" : [ { "id" : "core", "class" : "bus", "claimed" : true, "handle" : "DMI:0002", "description" : "Motherboard", "product" : "F31", "vendor" : "Lenovo", "physid" : "0", "version" : "Rev 1.0", "children" : [ { "id" : "firmware", "class" : "memory", "claimed" : true, "description" : "BIOS", "vendor" : "Lenovo", "physid" : "0", "version" : "Q3B72", "date" : "08/22/2007", "units" : "bytes", "size" : 104464, "capacity" : 983040, "capabilities" : { "isa" : "ISA bus", "pci" : "PCI bus", "pcmcia" : "PCMCIA/PCCard", "pnp" : "Plug-and-Play", "upgrade" : "BIOS EEPROM can be upgraded", "shadowing" : "BIOS shadowing", "escd" : "ESCD", "cdboot" : "Booting from CD-ROM/DVD", "bootselect" : "Selectable boot path", "int5printscreen" : "Print Screen key", "int9keyboard" : "i8042 keyboard controller", "int14serial" : "INT14 serial line control", "int17printer" : "INT17 printer control", "acpi" : "ACPI", "usb" : "USB legacy emulation", "agp" : "AGP", "smartbattery" : "Smart battery", "biosbootspecification" : "BIOS boot specification", "netboot" : "Function-key initiated network service boot" } }, { "id" : "cpu", "class" : "processor", "claimed" : true, "handle" : "DMI:0004", "description" : "CPU", "product" : "Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz", "vendor" : "Intel Corp.", "physid" : "4", "businfo" : "cpu@0", "version" : "CPU Version", "slot" : "U2E1", "units" : "Hz", "size" : 1530967000, "capacity" : 1600000000, "width" : 64, "clock" : 533000000, "capabilities" : { "fpu" : "mathematical co-processor", "fpu_exception" : "FPU exceptions reporting", "wp" : true, "vme" : "virtual mode extensions", "de" : "debugging extensions", "pse" : "page size extensions", "tsc" : "time stamp counter", "msr" : "model-specific registers", "pae" : "4GB+ memory addressing (Physical Address Extension)", "mce" : "machine check exceptions", "cx8" : "compare and exchange 8-byte", "apic" : "on-chip advanced programmable interrupt controller (APIC)", "sep" : "fast system calls", "mtrr" : "memory type range registers", "pge" : "page global enable", "mca" : "machine check architecture", "cmov" : "conditional move instruction", "pat" : "page attribute table", "pse36" : "36-bit page size extensions", "clflush" : true, "dts" : "debug trace and EMON store MSRs", "acpi" : "thermal control (ACPI)", "mmx" : "multimedia extensions (MMX)", "fxsr" : "fast floating point save/restore", "sse" : "streaming SIMD extensions (SSE)", "sse2" : "streaming SIMD extensions (SSE2)", "ss" : "self-snoop", "ht" : "HyperThreading", "tm" : "thermal interrupt and status", "pbe" : "pending break event", "syscall" : "fast system calls", "nx" : "no-execute bit (NX)", "x86-64" : "64bits extensions (x86-64)", "constant_tsc" : true, "arch_perfmon" : true, "pebs" : true, "bts" : true, "rep_good" : true, "nopl" : true, "cpuid" : true, "aperfmperf" : true, "pni" : true, "dtes64" : true, "monitor" : true, "ds_cpl" : true, "est" : true, "tm2" : true, "ssse3" : true, "cx16" : true, "xtpr" : true, "pdcm" : true, "lahf_lm" : true, "pti" : true, "dtherm" : true, "cpufreq" : "CPU Frequency scaling" }, "children" : [ { "id" : "cache:0", "class" : "memory", "claimed" : true, "handle" : "DMI:0005", "description" : "L1 cache", "physid" : "5", "slot" : "L1 Cache", "units" : "bytes", "size" : 65536, "capacity" : 65536, "configuration" : { "level" : "1" }, "capabilities" : { "asynchronous" : "Asynchronous", "internal" : "Internal", "write-back" : "Write-back" } }, { "id" : "cache:1", "class" : "memory", "claimed" : true, "handle" : "DMI:0006", "description" : "L2 cache", "physid" : "6", "slot" : "L2 Cache", "units" : "bytes", "size" : 1048576, "capacity" : 1048576, "configuration" : { "level" : "2" }, "capabilities" : { "burst" : "Burst", "internal" : "Internal", "write-back" : "Write-back" } } ] }, { "id" : "memory", "class" : "memory", "claimed" : true, "handle" : "DMI:0012", "description" : "System Memory", "physid" : "12", "slot" : "System board or motherboard", "units" : "bytes", "size" : 4294967296, "children" : [ { "id" : "bank:0", "class" : "memory", "claimed" : true, "handle" : "DMI:0013", "description" : "DIMM DDR2 Synchronous 533 MHz (1.9 ns)", "physid" : "0", "serial" : "00000000", "slot" : "DIMM 1", "units" : "bytes", "size" : 2147483648, "width" : 64, "clock" : 533000000 }, { "id" : "bank:1", "class" : "memory", "claimed" : true, "handle" : "DMI:0014", "description" : "DIMM DDR2 Synchronous 533 MHz (1.9 ns)", "physid" : "1", "serial" : "76767E14", "slot" : "DIMM 2", "units" : "bytes", "size" : 2147483648, "width" : 64, "clock" : 533000000 } ] }, { "id" : "pci", "class" : "bridge", "claimed" : true, "handle" : "PCIBUS:0000:00", "description" : "Host bridge", "product" : "Mobile PM965/GM965/GL960 Memory Controller Hub", "vendor" : "Intel Corporation", "physid" : "100", "businfo" : "pci@0000:00:00.0", "version" : "03", "width" : 32, "clock" : 33000000, "children" : [ { "id" : "display:0", "class" : "display", "claimed" : true, "handle" : "PCI:0000:00:02.0", "description" : "VGA compatible controller", "product" : "Mobile GM965/GL960 Integrated Graphics Controller (primary)", "vendor" : "Intel Corporation", "physid" : "2", "businfo" : "pci@0000:00:02.0", "version" : "03", "width" : 64, "clock" : 33000000, "configuration" : { "driver" : "i915", "latency" : "0" }, "capabilities" : { "msi" : "Message Signalled Interrupts", "pm" : "Power Management", "vga_controller" : true, "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing", "rom" : "extension ROM" } }, { "id" : "display:1", "class" : "display", "handle" : "PCI:0000:00:02.1", "description" : "Display controller", "product" : "Mobile GM965/GL960 Integrated Graphics Controller (secondary)", "vendor" : "Intel Corporation", "physid" : "2.1", "businfo" : "pci@0000:00:02.1", "version" : "03", "width" : 64, "clock" : 33000000, "configuration" : { "latency" : "0" }, "capabilities" : { "pm" : "Power Management", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } }, { "id" : "usb:0", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:00:1a.0", "description" : "USB controller", "product" : "82801H (ICH8 Family) USB UHCI Controller #4", "vendor" : "Intel Corporation", "physid" : "1a", "businfo" : "pci@0000:00:1a.0", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "uhci_hcd", "latency" : "0" }, "capabilities" : { "uhci" : "Universal Host Controller Interface (USB1)", "bus_master" : "bus mastering" }, "children" : [ { "id" : "usbhost", "class" : "bus", "claimed" : true, "handle" : "USB:3:1", "product" : "UHCI Host Controller", "vendor" : "Linux 4.15.5-1-ARCH uhci_hcd", "physid" : "1", "businfo" : "usb@3", "logicalname" : "usb3", "version" : "4.15", "configuration" : { "driver" : "hub", "slots" : "2", "speed" : "12Mbit/s" }, "capabilities" : { "usb-1.10" : "USB 1.1" } } ] }, { "id" : "usb:1", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:00:1a.1", "description" : "USB controller", "product" : "82801H (ICH8 Family) USB UHCI Controller #5", "vendor" : "Intel Corporation", "physid" : "1a.1", "businfo" : "pci@0000:00:1a.1", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "uhci_hcd", "latency" : "0" }, "capabilities" : { "uhci" : "Universal Host Controller Interface (USB1)", "bus_master" : "bus mastering" }, "children" : [ { "id" : "usbhost", "class" : "bus", "claimed" : true, "handle" : "USB:4:1", "product" : "UHCI Host Controller", "vendor" : "Linux 4.15.5-1-ARCH uhci_hcd", "physid" : "1", "businfo" : "usb@4", "logicalname" : "usb4", "version" : "4.15", "configuration" : { "driver" : "hub", "slots" : "2", "speed" : "12Mbit/s" }, "capabilities" : { "usb-1.10" : "USB 1.1" } } ] }, { "id" : "usb:2", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:00:1a.7", "description" : "USB controller", "product" : "82801H (ICH8 Family) USB2 EHCI Controller #2", "vendor" : "Intel Corporation", "physid" : "1a.7", "businfo" : "pci@0000:00:1a.7", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "ehci-pci", "latency" : "0" }, "capabilities" : { "pm" : "Power Management", "debug" : "Debug port", "ehci" : "Enhanced Host Controller Interface (USB2)", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" }, "children" : [ { "id" : "usbhost", "class" : "bus", "claimed" : true, "handle" : "USB:1:1", "product" : "EHCI Host Controller", "vendor" : "Linux 4.15.5-1-ARCH ehci_hcd", "physid" : "1", "businfo" : "usb@1", "logicalname" : "usb1", "version" : "4.15", "configuration" : { "driver" : "hub", "slots" : "4", "speed" : "480Mbit/s" }, "capabilities" : { "usb-2.00" : "USB 2.0" } } ] }, { "id" : "multimedia", "class" : "multimedia", "claimed" : true, "handle" : "PCI:0000:00:1b.0", "description" : "Audio device", "product" : "82801H (ICH8 Family) HD Audio Controller", "vendor" : "Intel Corporation", "physid" : "1b", "businfo" : "pci@0000:00:1b.0", "version" : "03", "width" : 64, "clock" : 33000000, "configuration" : { "driver" : "snd_hda_intel", "latency" : "0" }, "capabilities" : { "pm" : "Power Management", "msi" : "Message Signalled Interrupts", "pciexpress" : "PCI Express", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } }, { "id" : "pci:0", "class" : "bridge", "claimed" : true, "handle" : "PCIBUS:0000:02", "description" : "PCI bridge", "product" : "82801H (ICH8 Family) PCI Express Port 1", "vendor" : "Intel Corporation", "physid" : "1c", "businfo" : "pci@0000:00:1c.0", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "pcieport" }, "capabilities" : { "pci" : true, "pciexpress" : "PCI Express", "msi" : "Message Signalled Interrupts", "pm" : "Power Management", "normal_decode" : true, "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" }, "children" : [ { "id" : "network", "class" : "network", "claimed" : true, "handle" : "PCI:0000:02:00.0", "description" : "Network controller", "product" : "BCM4311 802.11b/g WLAN", "vendor" : "Broadcom Limited", "physid" : "0", "businfo" : "pci@0000:02:00.0", "version" : "01", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "b43-pci-bridge", "latency" : "0" }, "capabilities" : { "pm" : "Power Management", "msi" : "Message Signalled Interrupts", "pciexpress" : "PCI Express", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } } ] }, { "id" : "pci:1", "class" : "bridge", "claimed" : true, "handle" : "PCIBUS:0000:04", "description" : "PCI bridge", "product" : "82801H (ICH8 Family) PCI Express Port 2", "vendor" : "Intel Corporation", "physid" : "1c.1", "businfo" : "pci@0000:00:1c.1", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "pcieport" }, "capabilities" : { "pci" : true, "pciexpress" : "PCI Express", "msi" : "Message Signalled Interrupts", "pm" : "Power Management", "normal_decode" : true, "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } }, { "id" : "pci:2", "class" : "bridge", "claimed" : true, "handle" : "PCIBUS:0000:06", "description" : "PCI bridge", "product" : "82801H (ICH8 Family) PCI Express Port 6", "vendor" : "Intel Corporation", "physid" : "1c.5", "businfo" : "pci@0000:00:1c.5", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "pcieport" }, "capabilities" : { "pci" : true, "pciexpress" : "PCI Express", "msi" : "Message Signalled Interrupts", "pm" : "Power Management", "normal_decode" : true, "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" }, "children" : [ { "id" : "network", "class" : "network", "claimed" : true, "handle" : "PCI:0000:06:00.0", "description" : "Ethernet interface", "product" : "NetLink BCM5906M Fast Ethernet PCI Express", "vendor" : "Broadcom Limited", "physid" : "0", "businfo" : "pci@0000:06:00.0", "logicalname" : "enp6s0", "version" : "02", "serial" : "00:1b:24:d4:f2:70", "units" : "bit/s", "capacity" : 100000000, "width" : 64, "clock" : 33000000, "configuration" : { "autonegotiation" : "on", "broadcast" : "yes", "driver" : "tg3", "driverversion" : "3.137", "firmware" : "sb v3.04", "latency" : "0", "link" : "no", "multicast" : "yes", "port" : "twisted pair" }, "capabilities" : { "pm" : "Power Management", "vpd" : "Vital Product Data", "msi" : "Message Signalled Interrupts", "pciexpress" : "PCI Express", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing", "ethernet" : true, "physical" : "Physical interface", "tp" : "twisted pair", "10bt" : "10Mbit/s", "10bt-fd" : "10Mbit/s (full duplex)", "100bt" : "100Mbit/s", "100bt-fd" : "100Mbit/s (full duplex)", "autonegotiation" : "Auto-negotiation" } } ] }, { "id" : "usb:3", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:00:1d.0", "description" : "USB controller", "product" : "82801H (ICH8 Family) USB UHCI Controller #1", "vendor" : "Intel Corporation", "physid" : "1d", "businfo" : "pci@0000:00:1d.0", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "uhci_hcd", "latency" : "0" }, "capabilities" : { "uhci" : "Universal Host Controller Interface (USB1)", "bus_master" : "bus mastering" }, "children" : [ { "id" : "usbhost", "class" : "bus", "claimed" : true, "handle" : "USB:5:1", "product" : "UHCI Host Controller", "vendor" : "Linux 4.15.5-1-ARCH uhci_hcd", "physid" : "1", "businfo" : "usb@5", "logicalname" : "usb5", "version" : "4.15", "configuration" : { "driver" : "hub", "slots" : "2", "speed" : "12Mbit/s" }, "capabilities" : { "usb-1.10" : "USB 1.1" } } ] }, { "id" : "usb:4", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:00:1d.1", "description" : "USB controller", "product" : "82801H (ICH8 Family) USB UHCI Controller #2", "vendor" : "Intel Corporation", "physid" : "1d.1", "businfo" : "pci@0000:00:1d.1", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "uhci_hcd", "latency" : "0" }, "capabilities" : { "uhci" : "Universal Host Controller Interface (USB1)", "bus_master" : "bus mastering" }, "children" : [ { "id" : "usbhost", "class" : "bus", "claimed" : true, "handle" : "USB:6:1", "product" : "UHCI Host Controller", "vendor" : "Linux 4.15.5-1-ARCH uhci_hcd", "physid" : "1", "businfo" : "usb@6", "logicalname" : "usb6", "version" : "4.15", "configuration" : { "driver" : "hub", "slots" : "2", "speed" : "12Mbit/s" }, "capabilities" : { "usb-1.10" : "USB 1.1" }, "children" : [ { "id" : "usb", "class" : "input", "claimed" : true, "handle" : "USB:6:2", "description" : "Mouse", "product" : "USB Optical Mouse", "vendor" : "IBM Corp.", "physid" : "1", "businfo" : "usb@6:1", "version" : "2.00", "configuration" : { "driver" : "usbhid", "maxpower" : "100mA", "speed" : "2Mbit/s" }, "capabilities" : { "usb-2.00" : "USB 2.0" } } ] } ] }, { "id" : "usb:5", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:00:1d.2", "description" : "USB controller", "product" : "82801H (ICH8 Family) USB UHCI Controller #3", "vendor" : "Intel Corporation", "physid" : "1d.2", "businfo" : "pci@0000:00:1d.2", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "uhci_hcd", "latency" : "0" }, "capabilities" : { "uhci" : "Universal Host Controller Interface (USB1)", "bus_master" : "bus mastering" }, "children" : [ { "id" : "usbhost", "class" : "bus", "claimed" : true, "handle" : "USB:7:1", "product" : "UHCI Host Controller", "vendor" : "Linux 4.15.5-1-ARCH uhci_hcd", "physid" : "1", "businfo" : "usb@7", "logicalname" : "usb7", "version" : "4.15", "configuration" : { "driver" : "hub", "slots" : "2", "speed" : "12Mbit/s" }, "capabilities" : { "usb-1.10" : "USB 1.1" } } ] }, { "id" : "usb:6", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:00:1d.7", "description" : "USB controller", "product" : "82801H (ICH8 Family) USB2 EHCI Controller #1", "vendor" : "Intel Corporation", "physid" : "1d.7", "businfo" : "pci@0000:00:1d.7", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "ehci-pci", "latency" : "0" }, "capabilities" : { "pm" : "Power Management", "debug" : "Debug port", "ehci" : "Enhanced Host Controller Interface (USB2)", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" }, "children" : [ { "id" : "usbhost", "class" : "bus", "claimed" : true, "handle" : "USB:2:1", "product" : "EHCI Host Controller", "vendor" : "Linux 4.15.5-1-ARCH ehci_hcd", "physid" : "1", "businfo" : "usb@2", "logicalname" : "usb2", "version" : "4.15", "configuration" : { "driver" : "hub", "slots" : "6", "speed" : "480Mbit/s" }, "capabilities" : { "usb-2.00" : "USB 2.0" }, "children" : [ { "id" : "usb:0", "class" : "generic", "claimed" : true, "handle" : "USB:2:2", "description" : "Generic USB device", "product" : "802.11n NIC", "vendor" : "Realtek", "physid" : "1", "businfo" : "usb@2:1", "version" : "0.00", "serial" : "00E04C0001", "configuration" : { "driver" : "r8188eu", "maxpower" : "500mA", "speed" : "480Mbit/s" }, "capabilities" : { "usb-2.00" : "USB 2.0" } }, { "id" : "usb:1", "class" : "storage", "claimed" : true, "handle" : "USB:2:7", "description" : "Mass storage device", "product" : "OnlyDisk", "vendor" : "Netac", "physid" : "2", "businfo" : "usb@2:2", "version" : "10.75", "serial" : "000000000000000255", "configuration" : { "driver" : "usb-storage", "maxpower" : "200mA", "speed" : "480Mbit/s" }, "capabilities" : { "usb-2.10" : true, "scsi" : "SCSI" } }, { "id" : "usb:2", "class" : "multimedia", "claimed" : true, "handle" : "USB:2:5", "description" : "Video", "product" : "Lenovo EasyCamera", "vendor" : "SuYin", "physid" : "4", "businfo" : "usb@2:4", "version" : "1.00", "serial" : "CN1314-MI09-VL-R01.00.00", "configuration" : { "driver" : "uvcvideo", "maxpower" : "500mA", "speed" : "480Mbit/s" }, "capabilities" : { "usb-2.00" : "USB 2.0" } } ] } ] }, { "id" : "pci:3", "class" : "bridge", "claimed" : true, "handle" : "PCIBUS:0000:07", "description" : "PCI bridge", "product" : "82801 Mobile PCI Bridge", "vendor" : "Intel Corporation", "physid" : "1e", "businfo" : "pci@0000:00:1e.0", "version" : "f3", "width" : 32, "clock" : 33000000, "capabilities" : { "pci" : true, "subtractive_decode" : true, "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" }, "children" : [ { "id" : "firewire", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:07:09.0", "description" : "FireWire (IEEE 1394)", "product" : "R5C832 IEEE 1394 Controller", "vendor" : "Ricoh Co Ltd", "physid" : "9", "businfo" : "pci@0000:07:09.0", "version" : "05", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "firewire_ohci", "latency" : "32", "maxlatency" : "4", "mingnt" : "2" }, "capabilities" : { "pm" : "Power Management", "ohci" : "Open Host Controller Interface", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } }, { "id" : "generic:0", "class" : "generic", "claimed" : true, "handle" : "PCI:0000:07:09.1", "description" : "SD Host controller", "product" : "R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter", "vendor" : "Ricoh Co Ltd", "physid" : "9.1", "businfo" : "pci@0000:07:09.1", "version" : "22", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "sdhci-pci", "latency" : "32" }, "capabilities" : { "pm" : "Power Management", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } }, { "id" : "generic:1", "class" : "generic", "claimed" : true, "handle" : "PCI:0000:07:09.2", "description" : "System peripheral", "product" : "R5C592 Memory Stick Bus Host Adapter", "vendor" : "Ricoh Co Ltd", "physid" : "9.2", "businfo" : "pci@0000:07:09.2", "version" : "12", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "r592", "latency" : "32" }, "capabilities" : { "pm" : "Power Management", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } }, { "id" : "generic:2", "class" : "generic", "claimed" : true, "handle" : "PCI:0000:07:09.3", "description" : "System peripheral", "product" : "xD-Picture Card Controller", "vendor" : "Ricoh Co Ltd", "physid" : "9.3", "businfo" : "pci@0000:07:09.3", "version" : "12", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "r852", "latency" : "32" }, "capabilities" : { "pm" : "Power Management", "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } } ] }, { "id" : "isa", "class" : "bridge", "claimed" : true, "handle" : "PCI:0000:00:1f.0", "description" : "ISA bridge", "product" : "82801HM (ICH8M) LPC Interface Controller", "vendor" : "Intel Corporation", "physid" : "1f", "businfo" : "pci@0000:00:1f.0", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "lpc_ich", "latency" : "0" }, "capabilities" : { "isa" : true, "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } }, { "id" : "ide", "class" : "storage", "claimed" : true, "handle" : "PCI:0000:00:1f.1", "description" : "IDE interface", "product" : "82801HM/HEM (ICH8M/ICH8M-E) IDE Controller", "vendor" : "Intel Corporation", "physid" : "1f.1", "businfo" : "pci@0000:00:1f.1", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "ata_piix", "latency" : "0" }, "capabilities" : { "ide" : true, "bus_master" : "bus mastering" } }, { "id" : "storage", "class" : "storage", "claimed" : true, "handle" : "PCI:0000:00:1f.2", "description" : "SATA controller", "product" : "82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode]", "vendor" : "Intel Corporation", "physid" : "1f.2", "businfo" : "pci@0000:00:1f.2", "version" : "03", "width" : 32, "clock" : 66000000, "configuration" : { "driver" : "ahci", "latency" : "0" }, "capabilities" : { "storage" : true, "msi" : "Message Signalled Interrupts", "pm" : "Power Management", "ahci_1.0" : true, "bus_master" : "bus mastering", "cap_list" : "PCI capabilities listing" } }, { "id" : "serial", "class" : "bus", "claimed" : true, "handle" : "PCI:0000:00:1f.3", "description" : "SMBus", "product" : "82801H (ICH8 Family) SMBus Controller", "vendor" : "Intel Corporation", "physid" : "1f.3", "businfo" : "pci@0000:00:1f.3", "version" : "03", "width" : 32, "clock" : 33000000, "configuration" : { "driver" : "i801_smbus", "latency" : "0" } } ] } ] }, { "id" : "battery", "class" : "power", "claimed" : true, "handle" : "DMI:0018", "description" : "Lithium Ion Battery", "product" : "35329", "vendor" : "SANYO", "physid" : "1", "version" : "06", "serial" : "2007/12/10", "slot" : "In the Back side", "units" : "mWh", "capacity" : 4800, "configuration" : { "voltage" : "11.1V" } }, { "id" : "scsi", "class" : "storage", "claimed" : true, "handle" : "SCSI:05", "physid" : "2", "businfo" : "scsi@5", "logicalname" : "scsi5", "configuration" : { "driver" : "usb-storage" }, "capabilities" : { "scsi-host" : "SCSI host adapter" } }, { "id" : "network:0", "class" : "network", "claimed" : true, "description" : "Ethernet interface", "physid" : "3", "logicalname" : "lxdbr0", "serial" : "ce:9c:c2:41:4f:ad", "configuration" : { "broadcast" : "yes", "driver" : "bridge", "driverversion" : "2.3", "firmware" : "N/A", "ip" : "10.235.44.1", "link" : "yes", "multicast" : "yes" }, "capabilities" : { "ethernet" : true, "physical" : "Physical interface" } }, { "id" : "network:1", "class" : "network", "claimed" : true, "description" : "Wireless interface", "physid" : "4", "businfo" : "usb@2:1", "logicalname" : "wlp0s29f7u1", "serial" : "3c:46:d8:4f:ca:24", "configuration" : { "broadcast" : "yes", "driver" : "r8188eu", "ip" : "192.4.4.13", "multicast" : "yes", "wireless" : "IEEE 802.11bgn" }, "capabilities" : { "ethernet" : true, "physical" : "Physical interface", "wireless" : "Wireless-LAN" } }, { "id" : "network:2", "class" : "network", "claimed" : true, "description" : "Ethernet interface", "physid" : "5", "logicalname" : "docker0", "serial" : "02:42:d7:d3:55:ba", "configuration" : { "broadcast" : "yes", "driver" : "bridge", "driverversion" : "2.3", "firmware" : "N/A", "ip" : "172.17.0.1", "link" : "no", "multicast" : "yes" }, "capabilities" : { "ethernet" : true, "physical" : "Physical interface" } } ] }
这样就很容易用 jq
之类的信息从中抽取信息了。
让lshw显示出敏感信息
默认情况下,lshw会隐藏IP地址、serial number之类的敏感信息,若你希望把这类信息也显示出来,则可以执行
sudo lshw -sanitize
获取帮助
lshw -help
会在stderr中显示简单的参数说明:
Hardware Lister (lshw) - unknown usage: lshw [-format] [-options ...] lshw -version -version print program version (unknown) format can be -html output hardware tree as HTML -xml output hardware tree as XML -short output hardware paths -businfo output bus information -X use graphical interface options can be -class CLASS only show a certain class of hardware -C CLASS same as '-class CLASS' -c CLASS same as '-class CLASS' -disable TEST disable a test (like pci, isapnp, cpuid, etc. ) -enable TEST enable a test (like pci, isapnp, cpuid, etc. ) -quiet don't display status -sanitize sanitize output (remove sensitive information like serial numbers, etc.) -numeric output numeric IDs (for PCI, USB, etc.) -notime exclude volatile attributes (timestamps) from output