Kernel modules Flashcards
1
Q
Display info about currently running kernel
A
uname uname -r -info about release uname -m -architecture (64-bit) uname -n -pc name uname -a -all info
2
Q
Display modules loaded in the system
A
lsmod
3
Q
Display info about specified module
A
modinfo floppy
4
Q
Util that is used to load and unload kernel modules
A
modprobe remove floppy module: modprobe -r floppy add floppy module back and its dependent modules if necessary: modprobe floppy
5
Q
Legacy: remove module
A
rmmod floppy
6
Q
Legacy: insert module
A
insmod /lib/modules/$(uname -r)/kernel/drivers/block/floppy.ko.xz
7
Q
List kernel modules dir for currently running kernel
A
ls /lib/modules/$(uname -r)/
8
Q
Prevent specified kernel modules from loading
A
create a file with. conf ext in dir /etc/modprobe.d/ add blacklist word in this file + module to be prevented from loading vim floppy-bl.conf blacklist floppy
9
Q
Generate a list of kernel dependencies
A
depmod