Which of the following commands displays the physical path of the kernel module named dummy?
A.
modprobe -i dummy
B.
modinfo -n dummy
C.
modpath -v dummy
D.
depmod -n dummy
E.
modshow -p dummy
题解
选项 A,「modprobe」指令可以用来增减内核模块。「-i」参数可以用来忽略模块设置档中的「install」和「remove」命令。
选项 B,「modinfo」可以用来查看指定内核模块的信息。「-n」参数可以查看指定内核模块的文件路径。此为正确答案。
选项 C,没有「modpath」指令。
选项 D,「depmod」指令用来产生「modules.dep」等文件。
选项 E,没有「modshow」指令。
