Linux Administration
medium
Questão de Linux Administration #019e3987
Enunciado da Questão
Linux Administration
#lspci
#pci-configuration-space
#irq
#pci-bus-speed
#vendor-id
Médio
What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
A
Device IRQ settings
Correta
B
PCI bus speed
Correta
C
System battery type
D
Device vendor identification
Correta
E
Ethernet MAC address
Explicação Oficial / Explicações da Comunidade
The lspci command is a utility for displaying information about PCI buses and devices connected to them. It reads the PCI configuration space and presents details about each device.
How it Works
lspci queries the kernel's PCI subsystem, which maintains a database of all detected PCI devices. By default, it shows device class, vendor, device ID, and subsystem information. With options like -v (verbose) or -vv, it can display additional details such as IRQ settings, memory addresses, and bus speed.
Correct Choices
- Device IRQ settings:
lspci -vshows the IRQ number assigned to each PCI device. This is part of the PCI configuration space and is correctly displayed. - PCI bus speed:
lspcican show the bus speed (e.g., 33MHz, 66MHz, or PCIe link speed) when using verbose modes. The speed is derived from the PCI capabilities registers. - Device vendor identification: Every PCI device has a vendor ID and device ID.
lspcidisplays the vendor name (e.g., Intel, NVIDIA) by looking up the ID in the PCI ID database (/usr/share/hwdata/pci.ids).
Incorrect Choices
- System battery type: Battery information is not part of the PCI subsystem. It is typically accessed via ACPI or through files in
/sys/class/power_supply/.lspcidoes not provide this data. - Ethernet MAC address: MAC addresses are associated with network interfaces, not PCI configuration space. While an Ethernet controller is a PCI device, its MAC address is stored in its own EEPROM and is not exposed by
lspci. Theip linkorifconfigcommands show MAC addresses.