Which command would you use to obtain the version information for a loaded driver module?

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 would you use to obtain the version information for a loaded driver module?

Explanation:
You inspect a module’s metadata to find its version. Kernel modules carry information such as version, license, and dependencies inside their metadata, and the command that reads this data is modinfo. Running modinfo on the module reveals its version if one was embedded at build time, and it works whether the module is loaded or not because it reads the module file’s metadata. In contrast, lsmod lists only loaded modules with basic runtime details like size and dependencies, not version information. depmod builds the module dependency map and related metadata for the current kernel, but doesn’t display version details. modprobe is used to load or remove modules and manage dependencies, not to report version information. So modinfo is the right tool to obtain the version information for a loaded driver module.

You inspect a module’s metadata to find its version. Kernel modules carry information such as version, license, and dependencies inside their metadata, and the command that reads this data is modinfo. Running modinfo on the module reveals its version if one was embedded at build time, and it works whether the module is loaded or not because it reads the module file’s metadata. In contrast, lsmod lists only loaded modules with basic runtime details like size and dependencies, not version information. depmod builds the module dependency map and related metadata for the current kernel, but doesn’t display version details. modprobe is used to load or remove modules and manage dependencies, not to report version information. So modinfo is the right tool to obtain the version information for a loaded driver module.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy