lsusb command in Linux with Examples

The lsusb command in Linux is used to display the information about USB buses and the devices connected to them. The properties displayed are speed, BUS, class, type details, etc.

Syntax:

lsusb [ options ]

Example:

Options:



  • -v : This option is used to display the output in verbose mode and also display detailed information about the devices connected.
    lsusb -v

  • -s : This option is used to display the only device specified by the bus and/or device number.

    Example:

    lsusb -s 2:4

  • -t : This option is used to dump the physical USB device hierarchy as a tree.

    Example:

    lsusb -t

  • -D : This option is used to display information about the specified device file. The device file should be like /dev/usb/002/004.

    Example:

    lsusb -D /dev/bus/usb/002/004



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.