↑ ↓ select, Enter open, Esc close

Show network, RAID and storage controllers with driver

user@server
lspci -k | grep -A3 -iE 'ethernet|raid|sata|sas|nvme|non-volatile'

Shows only network and storage controllers from the PCI device list, each with the following Kernel driver in use and Kernel modules lines. This reveals, for example, whether a hardware RAID controller is installed and which tool you need to monitor it. lspci without a filter lists all devices, lsusb the USB devices.

Note: If the command is missing: apt install pciutils (for lsusb the usbutils package).

Also searched as

  • which network card is installed
  • which raid controller do i have
  • show network card driver linux

Related one-liners

All in System and hardware

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.