Linux Find List of Hardware
Run lsmod to find the modules that are loaded (probably quite a few) and use “lspci” to list your hardware.. find the ethernet card and compare to the lsmod output
Code :
lspci | grep Ethernet
Command will give you the names of the ethernet pci devices
AdditionalCommands :
dmesg | grep ‘Ethernet driver’
grep eth0 /etc/modules.conf
Additional Commands :
lspci – list all PCI devices
OPTIONS
- -v
- Tells lspci to be verbose and display detailed information about all devices.
- -vv
- Tells lspci to be very verbose and display even more information (actually everything the PCI device is able to tell). The exact meaning of these data is not explained in this manual page, if you want to know more, consult /usr/include/linux/pci.h or the PCI specs.
- -n
- Show PCI vendor and device codes as numbers instead of looking them up in the PCI ID database.
- -x
- Show hexadecimal dump of first 64 bytes of the PCI configuration space (the standard header). Useful for debugging of drivers and lspci itself.
- -b
- Bus-centric view. Show all IRQ numbers and addresses as seen by the cards on the PCI bus instead of as seen by the kernel.
- -t
- Show a tree-like diagram containing all buses, bridges, devices and connections between them.