CompTIA Linux+ (XK0-004) — Question 153
A Linux administrator needs to take stock of USB devices attached to the system.
Which of the following commands would be BEST to complete this task?
Answer options
- A. lspci
- B. lsusb
- C. cat /proc/USB
- D. modprobe -ג€"usb
Correct answer: B
Explanation
The command 'lsusb' is specifically designed to display information about USB devices connected to the system, making it the best choice. The 'lspci' command lists PCI devices, 'cat /proc/USB' is not a valid command, and 'modprobe -g€"usb' is used to load USB kernel modules rather than list devices.