LFCS · Question #750
Which command displays information about connected USB devices?
The correct answer is B. cat /proc/bus/usb/devices. The /proc/bus/usb/devices virtual file in Linux provides detailed information about all connected USB devices and their configurations.
Question
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
(42 responses)- B93% (39)
- D2% (1)
- E5% (2)
Why each option
The `/proc/bus/usb/devices` virtual file in Linux provides detailed information about all connected USB devices and their configurations.
`/proc/usb/devices` is an older, deprecated path for USB device information; the standard path moved to `/proc/bus/usb/devices`.
The `/proc/bus/usb/devices` file in the Linux `/proc` filesystem dynamically generates information about all USB devices currently connected to the system, including their device IDs, manufacturer details, active configurations, and driver associations. This provides a comprehensive overview of USB hardware.
`/proc/usbdevices` is not a standard path for USB device information.
`/proc/usbbus/devices` is not a standard path for USB device information.
`/proc/hotplug/usb` is related to hotplug events, not a listing of connected devices.
Concept tested: Linux USB device information (procfs)
Source: https://learn.microsoft.com/en-us/windows-server/administration/linux-reference/linux-commands/proc
Topics
Community Discussion
No community discussion yet for this question.