Which USB
GUI for identifying USB devices with lsusb
About This Project
Which-USB is a Python script for Linux that helps users determine which USB device corresponds to a given physical device. It works by capturing the list of devices reported by the lsusb command in two states, one with the target device connected and one without, and then displaying the differences between the captured lists. Users choose a workflow at the start of the session, either beginning with the device disconnected and connecting it when prompted, or beginning with it connected and disconnecting it on request. The tool then reports the newly connected or disconnected devices along with their vendor and product identifiers.
The project is written in Python 3 and depends on the lsusb utility from the usbutils package, so it requires no additional installation beyond cloning the repository or downloading the single script and making it executable. The interface is a simple interactive terminal prompt, and the repository also includes a comparison of its CLI and GUI versions. Running the script with root privileges is recommended, since it provides more complete device visibility.
The tool may be useful to Linux users, system administrators, and developers who need to match an unidentified USB device to its entry in lsusb output, such as when working with keyboards, mice, storage devices, or USB serial adapters. It is also suited to situations where the device name is ambiguous or where multiple similar devices are attached to the same system.