CompTIA Linux+ (XK0-004) — Question 282
Which of the following commands will let a Linux user know the PCI devices that are installed in the system?
Answer options
- A. cat /proc/devices/pci
- B. lspci
- C. lsdev
- D. cat /proc/sys/dev
Correct answer: B
Explanation
The correct command is 'lspci', which specifically lists all PCI devices connected to the system. The other options do not provide the relevant information about PCI devices; 'cat /proc/devices/pci' and 'cat /proc/sys/dev' are incorrect paths, and 'lsdev' is used for listing device information but not specifically for PCI devices.