Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
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).
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.
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
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
glorofarz
Highly Voted 4Â years, 1Â month agodebloid
Most Recent 1Â month, 2Â weeks agormmichael95
1Â year agoMaikyCR28
1Â year, 5Â months agoserlan
1Â year, 9Â months agoArmina
2Â years, 7Â months agoArmina
2Â years, 7Â months agomilan92stankovic
3Â years, 7Â months agobiggydanny
3Â years, 12Â months ago