Task: display the list of USB devices connected to the computer, in Linux Debian or CentOS (or RedHat, or Ubuntu) OS.
# lsusb
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
As we can see, this command showed us a list of all connected USB devices, including USB hubs (USB Hub). In the example above, all USB ports are obviously free.
Comments