Forrest logo
back to the lsusb tool

lsusb:tldr:9e3d0

lsusb: List devices with a specified vendor and product ID only.
$ lsusb -d ${vendor}:${product}
try on your machine

The command "lsusb -d ${vendor}:${product}" is used to list USB devices connected to your computer that match a specific vendor and product ID.

Here's a breakdown of the command:

  • "lsusb" is a command-line utility for displaying information about USB buses and the devices connected to them. It lists details like the vendor ID, product ID, device name, etc.
  • "-d" is an option that allows you to specify a specific vendor and product ID to filter the output.
  • "${vendor}:${product}" is a placeholder that you need to replace with the actual vendor and product ID of the device you want to find. The vendor and product IDs are typically written in hexadecimal format and can be obtained from the device manufacturer's documentation or by using other commands like "lsusb" without the "-d" option to list all connected USB devices and their details.

For example, if you want to find a USB device with a vendor ID of "1234" and a product ID of "5678", you would replace "${vendor}:${product}" with "1234:5678" in the command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lsusb tool