117-102 · Question #716
Which file contains information about all loaded modules?
The correct answer is A. /proc/modules. See the full explanation below for the reasoning.
Question
Options
- A/proc/modules
- B/etc/modules.conf
- C/etc/conf.modules
- D/lib/modules/kernel-version/modules.dep
- E/proc/mod
How the community answered
(30 responses)- A83% (25)
- B7% (2)
- C3% (1)
- D7% (2)
Community Discussion
5A is the right one, /proc/modules is a live kernel virtual file that reflects exactly what is loaded in memory right now, which is what the question is asking about. The others like /etc/modules.conf or modules.dep are config or dependency files, not a real-time list of what the kernel has actually loaded.
Yusuf is dead-on that /proc/modules is the live view, but worth adding that "lsmod" is really just a friendlier face on that same file, so if you ever see both options on an exam, they are pointing at the exact same source of truth.
Think of /proc as a live dashboard showing what the kernel is doing right now, so which option sounds like a running scoreboard versus a config file or a map?
Saw this exact wording on my 102 sitting years ago, picked A on instinct: /proc/modules lists every loaded module live.
Yeah that is spot on, and one thing worth adding is that modinfo will pull the details on any of those listed modules, like the license or parameters, without you needing to unload anything.