• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

lsusb: command not found

by admin

The lsusb command is used to display information about devices that are connected to the system’s USB buses. This command scans the /dev/bus/usb/ directory for information. By default, the command will print the number of the bus and the connected device, the ID of the device, and the name of the vendor and product matching that device.

You can use the -v flag to see detailed information about each device, similar to using the udevadm info command. You can also filter results by bus (-s) and by vendor/product (-d).

Syntax

The syntax of the lsusb command is:

# lsusb [options]

If you encounter the below error while running the lsusb command:

lsusb: command not found

you may try installing the below package as per your choice of distribution:

OS Distribution Command
OS X brew install lsusb
Debian apt-get install usbutils
Ubuntu apt-get install usbutils
Alpine apk add usbutils
Arch Linux pacman -S usbutils
Kali Linux apt-get install usbutils
CentOS yum install usbutils
Fedora dnf install usbutils
Raspbian apt-get install usbutils

lsusb Command Examples

1. To list the USB devices:

# lsusb 

2. To be verbose:

# lsusb -v
# lsusb --verbose 

3. To Show only devices in specified bus and/or devnum:

# lsusb -s bus
# lsusb -s devnum 

4. To show only devices with the specified vendor and product ID:

# lsusb -d vendor
# lsusb -d product 

5. To not Do not scan the /dev/bus/usb directory, instead display only information about the device whose device file is given:

# lsusb -D device 

6. To Tells lsusb to dump the physical USB device hierarchy as a tree:

# lsusb -t 

7. To get the version:

# lsusb -V
# lsusb --version 

Filed Under: Linux

Some more articles you might also be interested in …

  1. dvc config: Low level command to manage custom configuration options for dvc repositories
  2. UNIX / Linux : how to force user to change their password on next login after password has reset
  3. dust: Instant overview of which directories are using disk space
  4. chafa: Image printing in the terminal
  5. Ubuntu: Changing the stripe size of a striped LVM volume
  6. dos2unix: command not found
  7. apt Command Examples in Linux
  8. slapt-src Command Examples in Linux
  9. kind Command Examples
  10. lsattr: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright