exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 185 discussion

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

A junior administrator is installing kernel modules. The administrator is given a checklist that outlines the following tasks to be completed:
✑ Display currently installed module version.
✑ Display which modules loaded at startup.
Which of the following commands would be used to accomplish these tasks? (Choose two.)

  • A. cat /etc/issue
  • B. insmod
  • C. lsmod
  • D. rmmod
  • E. depmod
  • F. dmesg
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️
Reference:
https://linuxize.com/post/lsmod-command-in-linux/

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
alfre
Highly Voted 4 years, 4 months ago
C. lsmod F. dmesg
upvoted 17 times
...
giannisae
Highly Voted 4 years, 4 months ago
C. lsmod F. dmesg
upvoted 6 times
...
evgeniyk
Most Recent 2 years, 6 months ago
My answers EF E: depmod -av will show all modules with versions and deps. I cannot get version with lsmod F: dmesg will show which modules were loaded on boot.
upvoted 1 times
...
RichardJRL
3 years ago
Weird question. Module versions: None of the options will show kernel module versions. You need 'modinfo [module-name]' to show the version of a named module. lsmod is wrong because it shows the module, its size and dependencies, NOT version number Modules loaded at boot: dmesg will show all kernel messages at boot, including very verbose output from kernel modules/drivers being loaded, but it's not a simple list of 'this set of modules loaded at boot'. lsmod is wrong because it shows modules currently loaded - and some may have been removed or added since boot...
upvoted 1 times
...
stonegg
4 years, 1 month ago
System administrators can use lsmod, modprobe, and dmesg to get information about the kernel.
upvoted 1 times
...
sanspulp
4 years, 4 months ago
lsmod is the only correct answer. modinfo can give you information about a specific module (including version information)
upvoted 3 times
...
Mikey_
4 years, 4 months ago
rmmod removes mods so it is not right
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