List USB devices
The lsusb command is used to display information about USB buses in the system and the devices connected to them. It is a helpful tool for USB driver development and identifying USB devices.
lsusb [OPTION]...
-v:Display detailed information about USB devices.
-s [[bus]:][devnum]:Show only devices on a specified bus and/or with a specified device number.
-d [vendor]:[product]:Show only devices with the specified vendor and product ID.
-t:Dump the physical USB device hierarchy as a tree.
-V:Display version information.
Example output after inserting a USB mouse:
Bus 005 Device 001: id 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 006: ID 15d9:0a37
Bus 002 Device 001: ID 0000:0000
Explanation:
lspci | grep USB)./sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/devnumusb_device_descriptor.idVendorusb_device_descriptor.idProduct/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/idVendor and idProductBus 002 Device 006: ID 15d9:0a37 Bus 002 Device 001: ID 0000:0000
This indicates two devices on USB bus 002: