Skip to content

Instantly share code, notes, and snippets.

@itdaniher
Created October 27, 2011 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itdaniher/1318548 to your computer and use it in GitHub Desktop.
Save itdaniher/1318548 to your computer and use it in GitHub Desktop.
How do I get a listing of attached USB devices in OSX?

OSX lacks the usbutils package. Sometimes you feel compelled to do hardware development in OSX, and it's nice to know if a device is enumerating properly.

To pull this off, run

 system_profiler SPUSBDataType

It may be helpful to alias this command to lsusb.

You can either make a script containing the above command or add

 alias lsusb='system_profiler SPUSBDataType'

to your .profile file.

["lsusb","osx","hardware","usb","bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment