How to display / list Kernel device drivers or modules in Linux

by Eddy on

For Linux beginners or windows administrator some time simple tasks sounds pretty big and boring one of these tasks is to find out what device drivers are loaded into running Linux kernel. However for Solaris administrators displaying loaded device drivers or kernel modules in Linux is pretty easy job.

You need to know if particular device driver is loaded into Linux kernel or not, for example when I was working on configuring VLAN on Linux I noted that 8021q VLAN driver wasn’t loaded by default. Here is how you can find out in Linux if particular device driver or modules are loaded and which device drivers are not loaded by running few simple commands. You may need to know this for several reasons for example if your USB or Bluetooth device doesn’t work in Linux then you need to find out if Bluetooth and USB device drivers are loaded into your Linux kernel.

In Red Hat enterprise/CentOS and fedora you can run lsmod command to display loaded kernel modules or device drivers.

[root@bosdev ~]#  lsmod |more

Module Size Used by

autofs4 24389 2

hidp 23105 2

rfcomm 42457 0

l2cap 29633 10 hidp,rfcomm

bluetooth 53925 5 hidp,rfcomm,l2cap

sunrpc 144253 1

dm_multipath 21577 0

video 19269 0

sbs 18533 0

—- - -

—- - -

You can also find out if particular device driver or kernel modules is loaded and running on your Linux by displaying contents of /proc/modules file:

[root@bosdev ~]#  lsmod |more

Module Size Used by

autofs4 24389 2

hidp 23105 2

rfcomm 42457 0

l2cap 29633 10 hidp,rfcomm

bluetooth 53925 5 hidp,rfcomm,l2cap

sunrpc 144253 1

dm_multipath 21577 0

video 19269 0

sbs 18533 0

—- - -

—- - -

News Tags:

Bookmark and Share

Related posts:

Leave a Comment

Comment moderation is enabled. Your comment may take some time to appear.

Previous post:

Next post: