The lsusb
command is used in Linux to display information about USB (Universal Serial Bus) devices connected to the system. It provides details such as the device ID, vendor ID, and device class, making it a useful tool for troubleshooting and managing USB hardware.
The basic syntax of the lsusb
command is as follows:
lsusb [options] [arguments]
-v
: Verbose output. Displays detailed information about each USB device.-t
: Displays the USB device hierarchy in a tree format.-s <bus>:<device>
: Show only the specified device on the given bus.-d <vendor>:<product>
: Show only devices with the specified vendor and product ID.-h
: Display help information about the command and its options.Here are some practical examples of using the lsusb
command:
lsusb
lsusb -v
lsusb -t
lsusb -s 001:002
lsusb -d 1234:5678
lsusb -v
for a comprehensive view of device capabilities, especially useful for debugging.lsusb
with other commands like grep
to filter results based on specific criteria.lsusb
when troubleshooting USB-related issues to ensure proper recognition by the system.