1.更新brew
brew update
2.安装lsusb
brew install lsusb
示例:
[Mac@11:22:44]~$ brew install lsusb
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/lsusb-1.0.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Pouring lsusb-1.0.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/lsusb/1.0: 4 files, 12.8KB
==> Running `brew cleanup lsusb`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
[Mac@11:23:06]~$ lsusb
Bus 020 Device 002: ID 2717:501e 2717 Mi Smart Mouse's Dongle Serial: 0123456789AB
Bus 020 Device 001: ID 0a12:0001 Cambridge Silicon Radio Ltd. CSR8510 A10
Bus 020 Device 003: ID 1a2c:4094 1a2c USB Keyboard
Bus 000 Device 001: ID 1d6b:ISPT Linux Foundation USB 3.0 Bus
[Mac@11:23:39]~$
评论已关闭!