hwinfo is a hardware information tool that can be used to analyze the hardware on a computer and display detailed information about various hardware components in a human readable format.
It reports information about CPU, RAM, keyboard, mouse, graphics card, sound, storage, network interface, disk, partition, bios, and bridge, etc,.
This tool could display detailed information like lshw, dmidecode, inxi and other tools.
The hwinfo libhd library uses libhd.so to gather hardware information on the system.
This tool was specifically designed for the openSUSE system, but later other distributions added the tool to their official repository, as it provided better information about computer hardware.
If you are looking for other alternatives, read the following articles as well.
- Dmidecode – A Best Tool to Get System Hardware Information on Linux
- inxi – A Great Tool for Checking Hardware Information on Linux
- LSHW (Hardware Lister) – A Nifty Tool To Get A Hardware Information On Linux
The hwinfo utility displays the following information.
- CPU : manufacturer, model, frequency
- Motherboard : manufacturer, model, BIOS version, on-board controller
- RAM : RAM size, RAM type (FP, EDO, SDRAM, DDRAM)
- Hard disk controller : SCSI, IDE, on-board/card, model, BIOS version, chipset
- Hard disks : type, manufacturer, model, size, bus system (SCSI, IDE), partitioning
- CD-ROM drives : type, manufacturer, model, speed, internal/external, parallel port?
- Other media : CD writer, streamer (model, manufacturer, SCSI/EIDE/floppy streamer, capacity), ZIP drives, Jaz drives, MO drives, flopticals
- Graphics card : model, manufacturer, chipset, memory (DRAM, VRAM), memory size
- Other peripherals : printer, parallel ports, serial ports, modem, ISDN card
1) How To Install hwinfo on Linux
The hwinfo package is available in most Linux distributions repository and can be easily installed with the help of the package manager.
For Fedora/RHEL 8/CentOS 8 systems, use DNF Command to install hwinfo.
Make sure that you should enable the EPEL repository before running the DNF command on RHEL/CentOS systems because the hwinfo package is not available in the distribution official repository.
$ sudo dnf install hwinfo
For Debian/Ubuntu systems, use APT-GET Command or APT Command to install hwinfo.
$ sudo apt install hwinfo
For Arch Linux based systems, use Pacman Command to install hwinfo.
$ sudo pacman -S hwinfo
For RHEL/CentOS systems, use YUM Command to install hwinfo.
Make sure that you should enable the EPEL repository before running the DNF command on RHEL/CentOS systems because the hwinfo package is not available in the distribution official repository.
$ sudo yum install hwinfo
For openSUSE Leap system, use Zypper Command to install hwinfo.
$ sudo zypper install hwinfo
General Syntax for hwinfo The following is the general syntax for hwinfo.
hwinfo [OPTIONS] [HARDWARE_ITEM]
List of available hardware items for the hwinfo tool It provides a number of hardware items to separate output from your systems.
all, arch, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard, cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer, gfxcard, hub, ide, isapnp, isdn, joystick, keyboard, memory, modem, monitor, mouse, netcard, network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer, redasd, reallyall, scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, uml, usb, usb-ctrl, vbe, wlan, xen, zip
2) How to Display All Hardware Information on Linux Using the hwinfo Command
Run the hwinfo command without any argument, which display detailed information about all hardware units but it would be very difficult to understand, as it’s showing in depth details about hardware components.
Also, you can give --all option and both are showing the same results.
$ 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) How to Display Summary Information of System Hardware on Linux Using the hwinfo Command
It will print a brief statement of the hardware components.
$ 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
Also, you can filter the specific hardware information summary as follows.
$ 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) How to Display CPU Information on Linux Using the hwinfo Command
To display only detailed CPU information, use the --cpu option with the hwinfo command. This includes processor model, Vendor, system architecture, clock speed and cpu cache size.
$ 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) How to Display Network Interface Information on Linux Using the hwinfo Command
To display only detailed network interface information, use the --network option with the hwinfo command.
$ 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) How to Display Network Card Information on Linux Using the hwinfo Command
To display only detailed network card information, use the --netcard option with the hwinfo command.
$ 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) How to Display Disk Information on Linux Using the hwinfo Command
To display only detailed hard disk information, use the --disk option with the hwinfo command. It includes, Device file name, device file path, bois id, device number, etc.
$ 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) How to Display Partition Information on Linux Using the hwinfo Command
To display only detailed hard disk partition information, use the --partition option with the hwinfo command.
$ 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/Microsoft\x20reserved\x20partition, /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/Basic\x20data\x20partition, /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) How to Display USB Device Controller Information on Linux Using the hwinfo Command
To display detailed usb device information, use the --usb option with the hwinfo command.
$ 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) How to Display Memory Information on Linux Using the hwinfo Command
To display detailed detailed memory information, use the --memory option with the hwinfo command.
$ 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) How to Display PCI Device Controller Information on Linux Using the hwinfo Command
To display detailed pci device information, use the --pci option with the hwinfo command.
$ 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) How to Export the hwinfo output to a File
hwinfo offers the log option, which used to store the hwinfo output in the file for later analysis. If you want to export a specific hardware information output you can specify the —
$ sudo hwinfo --log hwinfo.txt
13) How to Visit the hwinfo Help Page
To learn more about hwinfo, go to the hwinfo help section or the man page.
$ hwinfo --help
