Posted in Linux, LPIC, tagged Bus, CLI, Command, Computers, Configuration, dev, Device, Devices, Functions, Hardware, How to, HowTo, ID, Line, Linux, ls, Product, Programming, root hub, Software, technology, Tips and Tricks, Ubuntu, USB, Vendor on September 10, 2012|
1 Comment »
The lsusb
command lists the USB devices of the computer.
Example:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 2232:1029
Bus 002 Device 003: ID 8087:07da Intel Corp.
Bus 003 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
As most commands in Linux, it has some flags, which I’ll explain below. But first, let’s explain a little bit those numbers.
- Bus: In computer architecture, a bus is a subsystem that transfers data between components inside a computer, or between computers
- Device: is the specific device number
- Vendor: The vendor ID is the first (octal) number after the ID label
- Product: The product ID is the second (octal) number after the ID label, placed after the colon
:
- Description: If available, the final part is a brief description of the product
Options (or flags)
$ lsusb -v
It is the verbose
mode. The detailed information of the devices is shown.
$ lsusb -t
The devices information is shown as a tree
.
$ lsusb -s 001:
Show the device(s) whose Bus number
is 001
. In the above output, there are 3 of these.
$ lsusb -s 001
Show the device(s) whose device number
is 001
. In the above output, there are 4 of these.
$ lsusb -s 001:002
Show the device whose Bus
and Device
number are 001
and 002
respectively.
In the three previous examples the flag s
can be changes by d
, if one’d like to specify the Vendor
and Product
ID respectively.
Cheers.
DOX
-33.034489
-71.596322
Read Full Post »