Which command shows details and versions for a specific kernel 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 shows details and versions for a specific kernel module?

Explanation:
You inspect kernel module metadata and version information by reading the module’s own metadata. The command that shows details and versions for a specific kernel module is modinfo. It reads the .ko file’s embedded metadata and prints fields such as filename, version, description, author, license, depends, srcversion, and any module parameters. You can run it with the module name or with a path to the module file, and you’ll get the exact version information and other details stored in that module. This is the right tool because it’s designed specifically to reveal a module’s identity and configuration options. Other commands don’t provide this level of per-module metadata: lsmod lists modules that are currently loaded with simple usage data, not version details; modprobe is used to load or remove modules and to apply options but doesn’t display metadata; and uname -a shows the overall kernel version and system information, not details about individual modules.

You inspect kernel module metadata and version information by reading the module’s own metadata. The command that shows details and versions for a specific kernel module is modinfo. It reads the .ko file’s embedded metadata and prints fields such as filename, version, description, author, license, depends, srcversion, and any module parameters. You can run it with the module name or with a path to the module file, and you’ll get the exact version information and other details stored in that module.

This is the right tool because it’s designed specifically to reveal a module’s identity and configuration options. Other commands don’t provide this level of per-module metadata: lsmod lists modules that are currently loaded with simple usage data, not version details; modprobe is used to load or remove modules and to apply options but doesn’t display metadata; and uname -a shows the overall kernel version and system information, not details about individual modules.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy