lsusb
Overview
The lsusb
command lists USB devices connected to the system. It provides information about USB buses and the devices connected to them.
Syntax
lsusb [options]
Common Options
Option | Description |
---|---|
-v |
Verbose mode |
-t |
Show USB device tree |
-s [[bus]:][devnum] |
Show only devices with specified bus/device numbers |
-d [vendor]:[product] |
Show only devices with specified vendor/product ID |
-D device |
Show only specified device |
-V |
Show version |
-h |
Show help message |
Key Use Cases
- Device identification
- Hardware troubleshooting
- System inventory
- Driver verification
- Device monitoring
Examples with Explanations
Example 1: Basic List
lsusb
Show all USB devices
Example 2: Device Tree
lsusb -t
Show USB device hierarchy
Example 3: Verbose Info
lsusb -v
Show detailed device information
Understanding Output
Basic format:
Bus XXX Device XXX: ID XXXX:XXXX Vendor Product
Example:
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Common Usage Patterns
Find specific device:
lsusb -d vendor:product
Check device tree:
lsusb -t
Monitor changes:
watch lsusb
Performance Analysis
- Quick execution
- USB bus scanning
- Device enumeration
- Database lookup time
- Real-time information
Additional Resources
Device Categories
- Storage devices
- Input devices
- Printers
- Cameras
- Network adapters
Best Practices
- Regular device checks
- Update USB database
- Monitor connections
- Document devices
- Check power usage