How To Check Kernel Modules In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Checking installed modules with lsmod: To list all the currently running modules, run the command:
$ lsmod
This command will output a table that includes all the loaded kernel modules, their sizes and their dependencies.
2. Inspecting the loaded modules in /proc/modules:
The file located at /proc/modules contains a tabular listing of loaded kernel modules. It is possible to use a text editor such as vi or nano to inspect the content of this file.
For example, $ sudo vi /proc/modules
3. Using the modinfo command: The modinfo command allows the user to get detailed information about the parameters and usage of a particular module. To use it, run the following command:
$ modinfo [module name]
For example, to get information about the vboxdrv kernel module, type: $ modinfo vboxdrv
To check kernel modules in Linux, you can use the lsmod command. This command will list all the loaded kernel modules in your system. You can also use the modinfo command to get more information about specific kernel modules.