LX0-103 · Question #150
Which command displays information about connected USB devices?
The correct answer is B. cat /proc/bus/usb/devices. On older Linux kernels, USB device information is exposed through the virtual filesystem at /proc/bus/usb/devices. The other listed paths do not exist or do not correspond to USB device data.
Question
Which command displays information about connected USB devices?
Options
- Acat /proc/usb/devices
- Bcat /proc/bus/usb/devices
- Ccat /proc/usbdevices
- Dcat /proc/usbbus/devices
- Ecat /proc/hotplug/usb
How the community answered
(39 responses)- B92% (36)
- D5% (2)
- E3% (1)
Why each option
On older Linux kernels, USB device information is exposed through the virtual filesystem at /proc/bus/usb/devices. The other listed paths do not exist or do not correspond to USB device data.
The path /proc/usb/devices does not exist in the standard Linux proc filesystem layout.
The Linux kernel historically exports USB device and bus information via the /proc/bus/usb/devices file, which lists all detected USB controllers, hubs, and connected devices along with their descriptors. This path follows the /proc/bus/ hierarchy used for various bus subsystems.
The path /proc/usbdevices is not a valid procfs entry.
The path /proc/usbbus/devices does not exist; the correct hierarchy uses /proc/bus/usb/.
/proc/hotplug/usb relates to hotplug event handling configuration, not device enumeration.
Concept tested: Linux procfs path for USB device information
Source: https://www.kernel.org/doc/html/latest/driver-api/usb/proc_usb_info.html
Topics
Community Discussion
No community discussion yet for this question.