XK0-005 · Question #1169
XK0-005 Question #1169: Real Exam Question with Answer & Explanation
The correct answer is B: lspci. {"question_number": 9, "question": "Listing PCI devices installed in a Linux system", "correct_answer": "B", "explanation": "'lspci' (list PCI) is the standard Linux utility for displaying all PCI buses and the devices connected to them. It reads from the /proc/bus/pci directory
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
Explanation
{"question_number": 9, "question": "Listing PCI devices installed in a Linux system", "correct_answer": "B", "explanation": "'lspci' (list PCI) is the standard Linux utility for displaying all PCI buses and the devices connected to them. It reads from the /proc/bus/pci directory (or sysfs) and shows hardware such as network cards, GPUs, storage controllers, and USB controllers along with their vendor and device IDs. Option A ('cat /proc/devices/pci') references a path that does not exist - /proc/devices lists character and block device numbers, not PCI hardware. Option C ('lsdev') is not a standard Linux command (it exists on some older UNIX variants). Option D ('cat /proc/sys/dev') is a directory, not a file, and contains kernel tunables for devices rather than a hardware listing.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.