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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. “xfs_log_force: error 5 returned” – XFS Error (CentOS/RHEL 7)
  2. How to uninstall chromium-chromedriver from Ubuntu
  3. loadkeys Command Examples in Linux
  4. pkginfo: command not found
  5. beep Command Examples in Linux
  6. How to move /usr and /var to Another Partition or Disk
  7. How to Re-Balance BTRFS to Free Disk Space
  8. CentOS / RHEL : How to create a Thinly Provisioned Logical Volume
  9. e4defrag: command not found
  10. How to uninstall neovim from Ubuntu

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright