在linux中,lsusb是一个用来显示系统中USB总线信息并连接到系统的工具。 lsusb 将显示连接到您系统的驱动程序和内部设备,包括 PID 和 VID,以及简单的设备描述。
$ lsusb -v |grep -Ei ‘(idVendor|Mass\ Storage)’
idVendor 0×1005 Apacer Technology, Inc.
bInterfaceClass 8 Mass Storage
输出非常详细的信息,包括设备的电流等。用 grep 命令指定具体信息,大容量存储设备将有一个供应商名称和 ID。
总线 008:指示设备连接的位置(哪个总线)
设备 002:表示这是连接到总线的第二个设备
ID:设备ID
Broadcom Corp. 蓝牙控制器:制造商名称和设备名称
$ lsusb -t
/: Bus 08.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
/: Bus 07.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
/: Bus 06.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
/: Bus 05.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
/: Bus 04.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root\_hub, Driver=ehci_hcd/6p, 480M
|__ Port 1: Dev 4, If 0, Class=stor., Driver=usb-storage, 480M
|__ Port 6: Dev 3, If 0, Class=’bInterfaceClass 0x0e not yet handled’, Driver=uvcvideo, 480M
|__ Port 6: Dev 3, If 1, Class=’bInterfaceClass 0x0e not yet handled’, Driver=uvcvideo, 480M
/: Bus 01.Port 1: Dev 1, Class=root\_hub, Driver=ehci_hcd/6p, 480M
12M表示USB 1.0/1.1的速度为12Mbit/s
480M表示USB 2.0的速度为480Mbit/s
如果你发现5.0G,说明你有USB 3.0类型的接口。它的传输速率为 5.0Gbit/s。 Linux 从 /var/lib/usbutils/usb.ids 识别 USB 设备的详细信息。或者您可以访问 Linux-USB.org 获取最新的 USB ID 列表。