Find USB device details in Linux/Unix using lsusb command

29552

Today we will see how to list USB devices in Linux and their properties such as speed, BUS, class, type details etc. This is part of our on going hardware detection series. We already covered following stuff.

Get BIOS, Firmware, Hardware And Drivers Details in Linux/Unix

What is dmesg command and how to use it in Linux/Unix?

Find hardware info with lshw, hardinfo, sysinfo Linux/Unix commands

Find PCI hardware details using lspci command in Linux

What is USB?

USB(Universal Serial Bus) is a stranded developed to replace different types of BUS’s available. This is a solution devices to eliminate vendor lock-down of hardware ports, so that BUS’s will be identical across different devices from different vendors. USB devices solve one more problem i.e. speeds. USB devices can reach up 5GB/s as of this writing where as PCI and serial devices have less speeds. Depending of USB firmware, its categorize in to USB 1.0, USB 2.0, USB 3.0. USB have competitor in the from of Thunderbolt interface.

As a Linux User/administrator we should know USB bus details as well as devices connected. In this post we will see how to use lsusb command to display different USB properties.

Learn lsusb command with examples

Example 1: List all the USB ports available

lsusb

 

Output:

	Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
	Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
	Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
	Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
	Bus 001 Device 003: ID 05c8:021e Cheng Uei Precision Industry Co., Ltd (Foxlink)
	Bus 001 Device 007: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
	Bus 002 Device 003: ID 0781:5567 San Disk Corp. Cruzer Blade

Let us try to understand above output in detail.

Bus 002 Device 003ID 0781:5567 SanDisk Corp. Cruzer Blade

Bus 002 : This is bus number where SanDisk USB stick is attached.

Device 003This is the third device attached to bus 002, the other two devices are “Linux Foundation 2.0 root hub” and ” Intel Corp. Integrated Rate Matching Hub”

ID 0781:5567 is the number given to this SanDisk, The number before : indicates the manufacture ID and number after : indicates device ID. To get more info on this visit Linux-USB site.

SanDisk Corp. Cruzer Blade is the name of manufacture and device name.

Example 2: Check how many USB ports available in your machine so that we can connect USB devices to these ports.

READ MORE:   http://www.linuxnix.com/find-usb-device-details-in-linuxunix-using-lsusb-command/