CompTIACompTIA
XK0-005 · Question #167
XK0-005 Question #167: Real Exam Question with Answer & Explanation
The correct answer is D: modprobe -r. The systems administrator wants to remove unused kernel modules that were autoloaded but are no longer necessary.
System Management
Question
A systems administrator notices a large number of autoloaded device modules are no longer needed and decides to do a cleanup of them. Which of the following commands will accomplish this task?
Options
- Armmod -c
- Bdepmod -r
- Cinsmod -c
- Dmodprobe -r
Explanation
The systems administrator wants to remove unused kernel modules that were autoloaded but are no longer necessary.
Common mistakes.
- A.
rmmodis used to remove a single module, but the-coption is not a standard or recognized flag for this command. - B.
depmodis used to generate or verify kernel module dependency information, which is used bymodprobeandinsmod, not to remove modules. The-roption fordepmodis typically used to rebuild module dependency files. - C.
insmodis used to insert a single module into the Linux kernel, which is the opposite of removing modules. The-coption is not a standard or recognized flag forinsmod.
Concept tested. Removing kernel modules
Topics
#Linux kernel modules#modprobe command#Module management#System administration
Community Discussion
No community discussion yet for this question.