Linux 101 : UDEV - lspci, lsusb, lshw, ethtool, ... -
The udev program checks the hardware on a machine and let the operating system know about it.
After the boot, udev checks the devices attached to the system. It also names the network interfaces.
The udev program also makes the operating system aware of any changes or updates that happen while the system is running, like when we plug a usb device or network cable into the machine.
As we mentioned before udev provides names to the network interfaces based on their types, for example:
- eno1 : Ethernet adapter 1 built on the motherboard.
- enp0s3 : Ethernet adapter - PCI bus 0, Slot 3 ( usually on virtual boxes ).
Checking the network interfaces:
To check the PCI attached hardware including the network interfaces, we might use the below commands:
To find out more information about a network interface, like the driver, manufacturer, we could use the below utility:
We could get the interfaces names using the below command:
Comments