1 .TH usb-devices 1 "23 June 2009" "usbutils-VERSION" "Linux USB Utilities"
4 usb-devices \- print USB device details
10 is a (bash) shell script that can be used to display details of USB
11 buses in the system and the devices connected to them.
13 The output of the script is similar to the \fIusb/devices\fP file
14 available either under \fI/proc/bus\fP (if usbfs is mounted), or under
15 \fI/sys/kernel/debug\fP (if debugfs is mounted there). The script is
16 primairily intended to be used if the file is not available.
18 In contrast to the \fIusb/devices\fP file, this script only lists
19 \fIactive\fP interfaces (those marked with a "*" in the \fIusb/devices\fP
20 file) and their endpoints.
22 Be advised that there can be differences in the way information is sorted,
23 as well as in the format of the output.
26 If sysfs is not mounted, a non-zero exit code is returned.
30 .B /sys/bus/usb/devices/usb*
31 The part of the sysfs tree the script walks through to assemble the
34 .B /proc/bus/usb/devices
35 Location where the \fIusb/devices\fP file can normally be found for
36 Linux kernels before 2.6.31, if usbfs is mounted.
38 .B /sys/kernel/debug/usb/devices
39 Location where the \fIusb/devices\fP file can normally be found for
40 Linux kernel 2.6.31 and later, if debugfs is mounted.
47 Greg Kroah-Hartman <greg@kroah.com>
49 Randy Dunlap <rdunlap@xenotime.net>
51 Frans Pop <elendil@planet.nl>