Linux kernal module Check, list, add remove.
lsmod
lsmod lists the modules loaded by the Linux kernel.
modprobe
modprobe loads a Linux kernel module. You can specify only the name of the module, and modprobe will load it from the correct location and also load any dependent modules.
Many modules load automatically. For example, Linux loads a USB keyboard module when a USB keyboard is attached. It also loads the base USB modules as dependencies. Some modules must be loaded manually, and “modprobe” is the easiest way to do this.
modprobe looks in the module directory /lib/mod-
ules/���uname -r��� for all the modules and other files, except for the
optional /etc/modprobe.conf configuration file and /etc/modprobe.d
directory
e.g.
# modinfo nfs
filename: /lib/modules/2.6.9-42.ELhugemem/kernel/fs/nfs/nfs.ko
author: Olaf Kirch
license: GPL
vermagic: 2.6.9-42.ELhugemem SMP 686 REGPARM 4KSTACKS gcc-3.4
depends: sunrpc,nfs_acl,lockd
# modprob -a MODULE_NAME #add module
#modprob -r MODULE_NAME #removes module DO NOT USE IF YOU DO NOT KNOW