Exam 201-450 All QuestionsBrowse all questions from this exam
Question 38

Which of the following commands displays the physical path of the kernel module named dummy?

    Correct Answer: B

    The correct command to display the physical path of the kernel module named dummy is 'modinfo -n dummy'. The 'modinfo' command provides information about a kernel module, and the '-n' option specifically shows the filename, which includes the physical path to the module.

Discussion
glorofarzOption: B

B! is correct. tested on both debian and centos. modinfo -n

milan92stankovicOption: B

B - 100%

biggydannyOption: B

i keep testing all and its B

serlanOption: B

B: modinfo -n

ArminaOption: B

B, is correct, I explained in separate comment ########## A, is wrong! Because “modprobe-i” has another functionality as we see in its man-page as follows: -i --ignore-install --ignore-remove This option causes modprobe to ignore install and remove commands in the configuration file (if any) for the module specified on the command line (any dependent modules are still subject to commands set for them in the configuration file). See modprobe.conf(5). https://linux.die.net/man/8/modprobe ########## C, is wrong! Because “modpath” - change global search path for dynamically loadable kernel modules https://www.unix.com/man-page/hpux/2/modpath/ ########## D, is wrong! Because “depmod” with this option “-n --dry-run” sends the resulting modules.dep and the various map files to standard output rather than writing them into the module directory. https://linux.die.net/man/8/depmod ########## E, is wrong! “modshow” is not a standard command in standard Linux distributions.

debloidOption: B

modinfo - Show information about a Linux Kernel module

rmmichael95Option: B

modinfo -n modname displays path to module

MaikyCR28Option: C

ChatGPT says: Option A (modprobe –i dummy) attempts to install the dummy kernel module and the -i option means "ignore install", so it does not display the physical path. Option B (modinfo –n dummy) displays the name of the kernel module, not its physical path. Option D (depmod –n dummy) creates a dependency file for the dummy kernel module, but does not display its physical path. Option E (modshow –p dummy) is not a valid command. Therefore, the correct answer is C (modpath –v dummy).

ArminaOption: B

B, is correct! because “modinfo” with the option “-n “ provides the information about kernel module and related filename, which has a physical path as well. -a --author, -d --description, -l --license, -p --parameters, -n --filename These are shortcuts for the --field flag's author, description, license, parm and filename arguments, to ease the transition from the old modutils modinfo. Ref.: https://man.archlinux.org/man/modinfo.8.en