nerdexam
CompTIA

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.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

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)
  • B
    92% (36)
  • D
    5% (2)
  • E
    3% (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.

Acat /proc/usb/devices

The path /proc/usb/devices does not exist in the standard Linux proc filesystem layout.

Bcat /proc/bus/usb/devicesCorrect

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.

Ccat /proc/usbdevices

The path /proc/usbdevices is not a valid procfs entry.

Dcat /proc/usbbus/devices

The path /proc/usbbus/devices does not exist; the correct hierarchy uses /proc/bus/usb/.

Ecat /proc/hotplug/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

#USB devices#proc filesystem#system information#hardware information

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice