201-450 Exam QuestionsBrowse all questions from this exam

201-450 Exam - Question 38


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

Show Answer
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

9 comments
Sign in to comment
glorofarzOption: B
Jul 21, 2020

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

milan92stankovicOption: B
Jan 16, 2021

B - 100%

biggydannyOption: B
Sep 9, 2020

i keep testing all and its B

ArminaOption: B
Jan 30, 2022

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.

serlanOption: B
Nov 14, 2022

B: modinfo -n

ArminaOption: B
Jan 30, 2022

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

MaikyCR28Option: C
Mar 15, 2023

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).

rmmichael95Option: B
Aug 10, 2023

modinfo -n modname displays path to module

debloidOption: B
Jul 19, 2024

modinfo - Show information about a Linux Kernel module