nerdexam
CompTIA

XK0-005 · Question #174

Which of the following commands will let a Linux user know the PCI devices that are installed in the system?

The correct answer is B. lspci. lspci is the standard Linux utility for listing all PCI buses and devices detected in the system, including graphics cards, network adapters, storage controllers, and USB controllers. It reads data from the /sys/bus/pci subsystem and the PCI ID database. Option A (cat…

System Management

Question

Which of the following commands will let a Linux user know the PCI devices that are installed in the system?

Options

  • Acat /proc/devices/pci
  • Blspci
  • Clsdev
  • Dcat /proc/sys/dev

How the community answered

(53 responses)
  • A
    6% (3)
  • B
    92% (49)
  • C
    2% (1)

Explanation

lspci is the standard Linux utility for listing all PCI buses and devices detected in the system, including graphics cards, network adapters, storage controllers, and USB controllers. It reads data from the /sys/bus/pci subsystem and the PCI ID database. Option A (cat /proc/devices/pci) is not a valid path - /proc/devices lists character and block device numbers, not PCI hardware. Option C (lsdev) is not a widely available standard command. Option D (cat /proc/sys/dev) is also not a valid path for PCI device enumeration.

Topics

#Linux commands#PCI devices#Hardware information#System diagnostics

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice