LPIC-2 Exam 201 (Linux Engineer) — Question 2
Which of the following commands displays the physical path of the kernel module named dummy?
Answer options
- A. modprobe ""i dummy
- B. modinfo ""n dummy
- C. modpath ""v dummy
- D. depmod ""n dummy
- E. modshow ""p dummy
Correct answer: B
Explanation
The command 'modinfo' with the '-n' option is specifically designed to display the file name of a module, which includes its physical path. The other commands listed do not provide the physical path of the module; for instance, 'modprobe' is used to load modules, while 'depmod' is for generating module dependency files.