This is a lightweight macOS implementation of the lsusb command, similar to the Linux usbutils package.
It uses Apple's IOKit framework to list connected USB devices.
- Lists USB devices with Vendor ID, Product ID, and Product Name.
- Installs as
lsusbin/usr/local/binso it behaves like Linux. - Includes a manual page (
man lsusb). - Simple Makefile for build, install, uninstall.
Clone and build:
make build
sudo make installExample output:
Bus 000 Device 000: ID 05ac:8290 Apple Inc. iPhone
Bus 000 Device 000: ID 0bda:8153 Realtek USB 10/100/1000 LAN
Bus 000 Device 000: ID 046d:c534 Logitech USB Receiver