Which command lists all currently loaded kernel modules?

Prepare for the Google Data Center Technician Exam. Use our interactive quiz featuring flashcards and multiple choice questions with hints and explanations. Get exam-ready today!

Multiple Choice

Which command lists all currently loaded kernel modules?

Explanation:
The ability being tested is how to see which kernel modules are actively loaded in the running system. To list them, use lsmod. It reads the kernel’s module list exposed via /proc/modules and prints each loaded module along with its size and how many times it’s in use. This shows exactly what drivers or features are currently active, which is essential for understanding the current state of the kernel’s functionality. If you tried other commands, you’d see why they aren’t suitable here: modinfo reveals metadata about a specific module (like description and parameters) but not all loaded modules. depmod updates or builds the dependency information for modules; it isn’t about listing what’s loaded. rmmod removes a module from the running kernel; it can affect the system but doesn’t provide a list of modules.

The ability being tested is how to see which kernel modules are actively loaded in the running system. To list them, use lsmod. It reads the kernel’s module list exposed via /proc/modules and prints each loaded module along with its size and how many times it’s in use. This shows exactly what drivers or features are currently active, which is essential for understanding the current state of the kernel’s functionality.

If you tried other commands, you’d see why they aren’t suitable here: modinfo reveals metadata about a specific module (like description and parameters) but not all loaded modules. depmod updates or builds the dependency information for modules; it isn’t about listing what’s loaded. rmmod removes a module from the running kernel; it can affect the system but doesn’t provide a list of modules.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy