usbtree is a cross-platform terminal user interface for inspecting USB device hierarchies.
It presents connected devices and hubs as a live, colour-coded tree with device classes, connection speeds, friendly names, port paths, identifiers, serial numbers, power requirements, and child devices.
The utility automatically detects hardware being connected or removed and records these events in a timestamped log. On Linux, it can display live device activity, measure bandwidth through usbmon, safely eject storage devices, and show PCI hardware in a separate view.
usbtree uses nusb for USB enumeration, avoiding dependencies on libusb. Basic operation does not require root privileges.
This is free and open source software.
Key Features
- Displays USB hubs and devices in a live, colour-coded tree.
- Shows device classes, connection speeds, port paths and identifiers.
- Detects connected and removed devices with a timestamped event log.
- Provides friendly names using descriptors, usb.ids and custom overrides.
- Offers detailed device information including serial numbers and power requirements.
- Displays live USB activity and bandwidth measurements on Linux.
- Safely ejects USB mass-storage devices on Linux.
- Includes a separate view for inspecting PCI devices.
- Supports live filtering, collapsible hubs and copying device details.
- Provides a non-interactive mode for printing the USB tree.
- Cross-platform support – runs on Linux, macOS and Windows.
Website: github.com/gnomeria/usbtree
Support:
Developer: Sami
License: MIT License

usbtree is written in Rust. Learn Rust with our recommended free books and free tutorials.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.