Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
lspci shows every device on the PCI bus with its vendor and model. -k adds the kernel driver in use and the modules that could drive it — the quick check that hardware works. -nn shows the numeric vendor:device IDs for searching drivers. Some details need root.
Zo schrijf je het
lspci [OPTION]...Opties 22
Meest gebruikt
Display
Select
Data sources
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1All PCI devices
lspci 00:01.0 VGA compatible controller: Red Hat, Inc. Virtio 1.0 GPU (rev 01) 01:00.0 Ethernet controller: Red Hat, Inc. Virtio 1.0 network device (rev 01)Slot, class and model.
2Devices with their drivers
lspci -k 01:00.0 Ethernet controller: Red Hat, Inc. Virtio 1.0 network device (rev 01) Kernel driver in use: virtio-pciNo "driver in use" = no driver loaded.
3Network cards only
lspci | grep -i ethernetThen
lspci -k -s SLOT.4IDs for driver search
lspci -nn | grep -i net 01:00.0 Ethernet controller [0200]: Red Hat, Inc. Virtio 1.0 network device [1af4:1041] (rev 01)1af4:1041 = vendor:device.
5One device in detail
lspci -vv -s 01:00.0Capabilities, link speed, IRQ.
6Tree view
lspci -tWhich device sits behind which bridge.
7Only Intel devices
lspci -d 8086:Filter by vendor ID.
8Check the PCIe link speed of an NVMe disk
lspci -vv -s 03:00.0 | grep -E 'LnkCap|LnkSta'A slower LnkSta than LnkCap = wrong slot or bad link.
9Update the ID database
update-pciidsNewer names for new hardware (needs internet).
10Hardware inventory for audits
lspci -mm > /tmp/pci-$(hostname -s).txtMachine-readable list per host.
Niets past bij dit filter.
Bestanden
/usr/share/hwdata/pci.ids- Names of vendors and devices.
Exitcodes
0 :: Done. 1 :: Error.