≡ Menu

lsmod command

Linux Find Out Kernel Module (Device Driver) Version Number

How do I find the version of a kernel module (*.ko files located in /lib/modules/… directory) in Linux server?
[click to continue…]

RedHat / Centos Disable IPv6 Networking

Our policy and network configuration does not requires IPv6 support in RHEL / CentOS / Fedora Linux. How do I prevent the kernel module from loading at boot time and disable IPv6 networking?
[click to continue…]

Linux SATA Drive is Being Displayed as /dev/hda Instead Of /dev/sda

Q. My SATA drive is being displayed as /dev/hda instead of /dev/sda. How do I fix this problem and make sure I get /dev/sda and speed of SATA under Linux operating systems?
[click to continue…]

I‘ve ATI Radeon VGA [X1550 64 bit] card. How do I find find out if the driver is installed or not under any Linux distribution running xorg server?
[click to continue…]

Linux: Find out what kernel drivers (modules) are loaded

How do I find out what Linux kernel drivers are loaded by Linux? How do I list device drivers (or so-called modules) loaded into memory?
[click to continue…]

Howto: Linux Add or Remove a Linux Kernel Modules / Drivers

How do I add or remove hardware device driver (module) from running Linux kernel?
[click to continue…]

Howto: Display List of Modules or Device Drivers In the Linux Kernel

How do I display the list of loaded Linux Kernel modules or device drivers on Linux operating systems?
[click to continue…]

Linux: Find out Ethernet card driver name

Under Linux, you use term called modules for device drivers. The driver can be loaded or unloaded as per your requirement using commands. Each driver or module gives the Linux information on how to control that particular Ethernet card. The name of each module (driver) is listed in the /etc/modules.conf file.

Command to find out Ethernet card driver name

You can try any one of the following command to find out your Ethernet card driver:

# dmesg | grep 'Ethernet driver'

Output:

8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)

Or search a file called /var/log/dmesg:

# grep 'Ethernet driver' /var/log/dmesg

Output:

8139too Fast Ethernet driver 0.9.27
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)

You can also get driver name from config file:

# grep eth0 /etc/modules.conf

Output:

alias eth0 8139too

OR

# vi /etc/modules.conf

Search for eth0 string.

In above example 8139too is driver loaded for eth0. You can find out more information about this driver using modinfo command:

# modinfo 8139too

modinfo program to show information about a Linux Kernel module. You can also find out all loaded modules or drivers using lsmod command:

# lsmod | less

lsmod is a program to show the status of modules in the Linux Kernel.

See also: