Low Orbit Flux Logo 2 F

Linux Command - lsusb

The Linux lsusb command will list information about USB devices that are inside or connected to the system.



lsusb     # list USB devices in neat clean table
lsusb --tree     # list USB devices in a tree

lsusb -D /dev/bus/usb/002/003    # dump huge amount of info for specific device

lsusb -d 258a:1007    # show dev line with matching vendor/product ID
lsusb -s 002:003      # show dev line with matching bus / dev num

Example output:



$lsusb
Bus 002 Device 002: ID 0781:55ae SanDisk Corp. Extreme 55AE
Bus 002 Device 003: ID 0fd9:008a Elgato Systems GmbH Elgato HD60 X
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0b05:18a3 ASUSTek Computer, Inc. AURA MOTHERBOARD
Bus 001 Device 005: ID 258a:1007 SINOWEALTH Game Mouse
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 046d:0ab7 Logitech, Inc. Blue Microphones
Bus 001 Device 008: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 001 Device 004: ID 258a:003a SINO WEALTH Gaming KB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$

Example tree output:



$lsusb --tree
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
    |__ Port 8: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
    |__ Port 10: Dev 3, If 2, Class=Audio, Driver=snd-usb-audio, 5000M
    |__ Port 10: Dev 3, If 0, Class=Video, Driver=uvcvideo, 5000M
    |__ Port 10: Dev 3, If 7, Class=Human Interface Device, Driver=usbhid, 5000M
    |__ Port 10: Dev 3, If 3, Class=Audio, Driver=snd-usb-audio, 5000M
    |__ Port 10: Dev 3, If 1, Class=Video, Driver=uvcvideo, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
    |__ Port 4: Dev 2, If 3, Class=Human Interface Device, Driver=usbhid, 480M
    |__ Port 4: Dev 2, If 1, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 4: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 4: Dev 2, If 0, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 6: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 13: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 13: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 14: Dev 8, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 14: Dev 8, If 1, Class=Wireless, Driver=btusb, 12M
$