Linux: How do I list all USB devices?

Linux: How do I list all USB devices?

To list all USB devices that are connected to a Linux system, you can use the lsusb command. The lsusb command displays a list of all USB devices that are connected to the system, along with information about each device such as the vendor ID, product ID, and device class.

Here's the basic syntax for the lsusb command:

lsusb
S‮cruo‬e:www.lautturi.com

By default, lsusb shows a brief summary of each USB device, including the device's bus number, device number, vendor ID, and product ID. You can use the -v option to show detailed information about each device, including the device's class, subclass, and protocol, as well as its manufacturer, product, and serial number.

lsusb -v

You can also use the -t option to show a tree view of the USB device hierarchy, which can be helpful for understanding how the devices are connected to each other.

lsusb -t

You can use the -d option to show information about a specific device, based on its vendor and product ID. For example, to show information about a device with vendor ID 0x1234 and product ID 0x5678, you can use the following command:

lsusb -d 1234:5678

The lsusb command can be used to list all USB devices that are currently connected to the system. If you need to list USB devices that have been connected to the system in the past, you can use the lsusb -t command to view a tree view of the USB device hierarchy, which can help you identify devices that have been disconnected.

Created Time:2017-10-30 10:17:45  Author:lautturi