lspci -nnk | grep -E -iA3 "network|ethernet" extracts and displays your
system's wireless and wired network hardware details, specifically revealing their hardware codes
and the Linux kernel driver/s they are using.
lspci: Lists all PCI (Peripherial Component Interconnect) buses and devices attached
to your motherboard (such as GPUs, audio cards, and network adapters).
-nn: Along with the textual description/s, print the numeric [Vendor ID:Device ID]
codes (e.g., [13c5:5178] ).
-k: Shows which Kernel driver is handling the device, and which kernel modules are
available for it.
| grep -iA3 "network|ethernet": Pipes the massive list to grep, (-E) to use regExp so
we can do both searches at once, case-insensitively (-i) for the words "network" and "ethernet" , and prints the
matching line/s along with 3 lines of context after it/them (-A3) to ensure you can see the driver
details.
02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 73)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260 [Wilkens Peak 2] [8086:4470]
Kernel Driver in use: iwlwifi
Kernel modules: iwlwifi
0b:00.0 Network controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5761e Gigabit Ethernet PCI [14E4:1680] (rev 10)
Subsystem: Dell Device [1028:0428]
Kernel Driver in use: tg3
Kernel modules: tg3
lspci -nnk |grep -iA3 "ethernet"
lspci -nnk |grep -iA3 "network"
lsusb