This is an utility to easily list USB devices in Mac OS X, just like the
lsusb
command in Linux. It leverages the data from the system_profiler SPUSBDataType
built-in command available in Mac. You can type lsusb -v
to get the unmodified output of system_profiler SPUSBDataType
.To install, clone the repository and copy to a location available in your PATH, for example
sudo cp lsusb /usr/sbin
. You can also install it with Homebrew:Here's an output example:
Usage
Mac Mac 64 bit, Mavericks onwards. Version 1.0.4 Instructions: Open the DMG by double clicking on it. Drag Print42 into Applications. Download for Mac. If you are on Mac, there is a utility called lsusb which lists your devices and their addresses - really handy.
For a more accurate usage description type
man lsusb
or man man/lsusb.8
if inside the script's directory.