$linuxjunkies
>

lsusb(1)

List all USB devices connected to the system with their vendor and product IDs.

UbuntuDebianFedoraArch

Synopsis

lsusb [OPTION]...

Description

lsusb displays information about USB buses and devices connected to the system. It shows the device tree hierarchy, vendor names, product names, and device IDs in a human-readable format. The output is based on the USB device database, typically located at /usr/share/misc/usb.ids.

Without options, lsusb shows a summary of all USB devices. More detailed information can be obtained by combining flags to display specific device details, kernel drivers, or raw descriptor data.

Common options

FlagWhat it does
-vverbose mode; print detailed information about each device including configurations and endpoints
-s [[bus]:[dev]]show only devices with specified bus and/or device numbers, e.g., -s 001:002
-d vendor:[product]show only devices with specified vendor and optional product ID in hex, e.g., -d 0951:
-D deviceshow detailed info for a specific device file, e.g., -D /dev/bus/usb/001/002
-tdisplay devices in a tree-like hierarchical format showing parent-child relationships
-eshow how each device is used by active kernel drivers
-Vprint lsusb version and exit
-hdisplay help message

Examples

list all USB devices in a simple one-line format with vendor, product, and IDs

lsusb

display detailed verbose output including all USB descriptors, configurations, and endpoints for all devices

lsusb -v

show USB devices in a tree hierarchy showing how they connect through USB hubs

lsusb -t

show only Kingston USB drives with vendor ID 0951 and product ID 1666

lsusb -d 0951:1666

display the device on bus 001 with address 005

lsusb -s 001:005

show detailed information for a specific USB device using its device file path

lsusb -D /dev/bus/usb/001/002 -v

list all USB devices and show which kernel drivers are actively using each device

lsusb -e

search USB device list for a specific manufacturer like Logitech peripherals

lsusb | grep -i logitech

Related commands