Results 1 to 6 of 6
Hi friends,
I am beginner to linux, How to get devices information link keyboard, mouse , usb devices, etc.. connected to linux (using C prg)....... pls guide me.....
Thanks in ...
- 09-25-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 5
How to get device information in Linux
Hi friends,
I am beginner to linux, How to get devices information link keyboard, mouse , usb devices, etc.. connected to linux (using C prg)....... pls guide me.....
Thanks in advance.
Lakshmi
- 09-25-2007 #2
To see PCI connected devices, from the command line do:
For USB connected devices...Code:lspci
For a list of options for each, add "--help" after the respective commands... without the quotes of course....Code:lsusb
- 09-25-2007 #3
Other commands to look at are hwinfo and lshw. These may not be installed by default, but you can use your distributions package manager to install them.
- 09-25-2007 #4Just Joined!
- Join Date
- Sep 2007
- Posts
- 5
Information about serial port Devices
lspci & lsusb wil display the list of devices connectd to usb r pci,
to get information about serial port devices like mouse, keyboard & parallel port devices lik printer, how can i get these information,
Thanks
- 09-25-2007 #5
As daark.child said -- hwinfo. Install and run:
See here for a lot of info on this subject.Code:hwinfo --short
- 05-08-2009 #6Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
udevinfo
Alternatively, you can try udevinfo.
Especially if you want to extract the ouput and use it for another program. Because udevinfo outputs are all in name and value pairs, so it is easier to parse.
Both udevinfo and lshw are pretty good
Google: "How to extract storage device information without using dmesg"



