The Wayback Machine - https://web.archive.org/web/20240116084433/https://www.geeksforgeeks.org/lsusb-command-in-linux-with-examples/
Open In App
Related Articles

lsusb command in Linux with Examples

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

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

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 23 Apr, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads