Friday, January 20, 2012

lsusb

Story.
I bought a wireless keyboard and a mouse. How ever it doesn't work on my machine. (Compaq 420 Lap)  But it start to work on my friends machine. It has Windows and my one has Fedora 13. (Honestly i didn't mumble anything to sales person....) Surprisingly it works in Fedora 16 machine.

Question.
How to check whether my machine detect the device?

Answer.
lsusb - List information of all USB buses and all the devices connected to them.

There is a same kind of command for PCI. Its slpci - List all pci devices.

http://linux.about.com/library/cmd/blcmdl8_lsusb.htm

p.s. That start to work after changing the USB port. :D

2 comments:

Hansaka said...

nice.... ;-)

Hansaka said...

that should be lspci not slpci.
Ans there are lot of "ls" commands out there.

Just type ls and double tab. You will see them... ;-)