Friday, April 29, 2011

How to detect usb devices

lsusb is a nice tool to check for the usb divices, we can used this to check which are the usb devices currently connected/detected to your Linux Machine. Suppose id you are trying to connect your mobile broadband devices this will help a lot.

[root@tech29 ajeesh]# lsusb
bash: lsusb: command not found
[root@tech29 bus]# which lsusb
/usr/bin/which: no lsusb in (/usr/lib/ccache:/usr/lib/ccache:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/src/jre1.6.0_24/bin:/home/users/ajeesh/bin:/usr/src/jre1.6.0_24/bin:/usr/src/jre1.6.0_24/bin)

This means that you have not install the lsusb utility on your machine. usbutils will brings lsusb .

[root@tech29 bus]# yum search usbutils
Loaded plugins: presto
========================================================================== Matched: usbutils ===========================================================================
usbutils.i686 : Linux USB utilities

[root@tech29 bus]# yum install usbutils

[root@tech29 bus]# lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

No comments:

Post a Comment