I would like to check which driver is being used by the kernel for the eth0 interface.
lspci eth0 the correct command ?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
To identify the driver used by a particular network interface, use
ethtool -i <name of interface> as root.
Example on my
eno1 interface (new-style naming) on Debian 10:
# ethtool -i eno1 driver: e1000e version: 3.2.6-k firmware-version: 0.5-4 expansion-rom-version: bus-info: 0000:00:1f.6 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: no
So, in this case, the driver is
sudo lspci -v shows the drivers in use for all your PCI(E) devices.
sudo is not strictly required but might show more info.
Finding drivers for USB devices is more complicated: Find out which modules are associated with a usb device?