Type the command, with no options or arguments, that lists the kernel modules currently loaded, one per line, with each module's size and use count.
LPIC-1 Exam 101-500, objective 101. System architecture easy
Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.
It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.
Answer
Type the answer.
Accepted answers
lsmod/sbin/lsmod
Case sensitive — Linux is, and grading LS as ls would teach a falsehood.
Why
lsmod formats the contents of /proc/modules into three columns: module name, size in bytes, and the use count followed by the names of the modules using it. A use count above zero is why rmmod refuses to unload a module. modinfo is the command for describing a module you have not loaded, and cat /proc/modules shows the same data in its raw form.
Where this comes from
- Cited
- manual page lsmod(8)
Practise this
Reading one question is not practice. The trainer will draw a set from objective 101 and space the ones you get wrong.