lsusb command
lsusb queries the available USB devices
Typical usage: diagnosing hardware issues, information gathering, troubleshootingIntroduction into lsusb
The lsusb is a small utility for Linux to show what USB devices are connected to the system. When running it without any parameters, it will display what USB devices are available. With the options, a different output style can be achieved, including more verbose information about a particular device.
Installation
When lsusb is not installed by default, it can be added to the system using the relevant software package.
Package information for lsusb
Operating system | Package name | Installation |
---|---|---|
AlmaLinux | usbutils |
|
Arch Linux | usbutils |
|
Debian | usbutils |
|
Fedora | usbutils |
|
Red Hat Enterprise Linux | usbutils |
|
Rocky Linux | usbutils |
|
openSUSE | usbutils |
|
Ubuntu | usbutils |
|
Your Linux distribution using a different package? Share your feedback.
Usage
Available options
Long option | Short option | Description |
---|---|---|
-s [[BUS]:][DEVICE] | Show only devices from a particular bus (BUS) or with a particular device number (DEVICE) | |
-d vendor:[PRODUCT] | Show only devices from a particular vendor (VENDOR) or with a particular product identifier (PRODUCT). The values can be found in the default output of the lsusb command. | |
--tree | -t | Show output as a tree with device visually linked to the related bus, usually the USB hub |
--verbose | -v | Verbose output to show more details |
Missing an option in this overview? Share your feedback.
Examples using lsusb
Show only USB devices connected to bus 001
lsusb -s 001:
Show only the first USB device per bus
lsusb -s 001
Show detailed information for the second device on bus 001
lsusb -s 001:002 --verbose
Frequently Asked Questions
What is the lsusb command and its purpose?
The lsusb command is a command-line tool to show connected USB devices
Which package provides the lsusb command?
The command lsusb is provided by the usbutils package.
Relevant articles using the lsusb command
The following articles include an example on how to use lsusb and might be worth further exploring.
Related and similar commands
Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to lsusb:
Command | Category | Summary |
---|---|---|
dmidecode | hardware | Shows hardware information |
lscpu | memory | CPU information, virtualization features, CPU vulnerabilities |
uname | system information | Shows basic system information |