Is there an equivalent of lsusb for OS X

前端 未结 9 567
自闭症患者
自闭症患者 2021-01-30 01:15

This question seems to be all over google, but the answers all point to using System Profiler. That\'s nice, but with System Profiler all you get is something that looks like th

相关标签:
9条回答
  • 2021-01-30 01:43

    I typically run this command to list USB devices on Mac OS X, along with details about them:

    ioreg -p IOUSB -l -w 0
    
    0 讨论(0)
  • 2021-01-30 01:43

    How about ioreg? The output's much more detailed than the profiler, but it's a bit dense.

    Source: https://lists.macosforge.org/pipermail/macports-users/2008-July/011115.html

    0 讨论(0)
  • 2021-01-30 01:44

    I got tired of forgetting the system_profiler SPUSBDataType syntax, so I made an lsusb alternative. You can find it here , or install it with homebrew:

    brew install lsusb
    
    0 讨论(0)
  • 2021-01-30 01:48

    At least on 10.10.5, system_profiler SPUSBDataType output is NOT dynamically updated when a new USB device gets plugged in, while ioreg -p IOUSB -l -w 0 does.

    0 讨论(0)
  • 2021-01-30 01:49

    On Mac OS X, the Xcode developer suite includes the USB Proper.app application. This is found in /Developer/Applications/Utilities/. USB Prober will allow you to examine the device and interface descriptors.

    0 讨论(0)
  • 2021-01-30 01:56

    Homebrew users: you can get lsusb by installing usbutils formula from my tap:

    brew install mikhailai/misc/usbutils
    

    It installs the REAL lsusb based on Linux sources (version 007).

    0 讨论(0)
提交回复
热议问题