Skip to main content

Kernel

Kernel info

uname -a

Kernel module

module-name is same as module_name

List module

lsmod

Module info

modinfo <module>

Add module

insmod <module>

Remove module

rmmod <module>

Add module and dependencies

modprobe <module>

Remove module and dependencies

modprobe -r <module>

Blacklist module

In /etc/modprobe.d/*.conf

blacklist <module>

Blacklist module even other modules depend on it

In /etc/modprobe.d/*.conf

install <module> /bin/false

Process

Get process file path

ls -l /proc/<pid>/exe