exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 155 discussion

Actual exam question from CompTIA's XK0-004
Question #: 155
Topic #: 1
[All XK0-004 Questions]

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?

  • A. rmmod -c
  • B. depmod -r
  • C. insmod -c
  • D. modprobe -r
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DiaaEmara
2 years, 5 months ago
With the option -r, modprobe will automatically unload a stack of modules, similar to the way "rmmod -r" does. Note that using just "modprobe -r" will clean up unused autoloaded modules and also perform the pre- and post-remove commands in the configuration file /etc/modules.conf.
upvoted 1 times
...
examtopics_htc
2 years, 6 months ago
Selected Answer: D
No doubt about it, modprobe -r it
upvoted 3 times
...
pinonino
2 years, 11 months ago
Absolutely answer is D: modprobe -r removes kernel modules from a running kernel
upvoted 3 times
...
CarlosC
3 years, 1 month ago
It is strongly recommended to use modprobe -r, rather than rmmod, to remove your kernel modules, to ensure that removal does not break any dependencies.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago