Which of the following commands loads a kernel module along with any required dependency modules?
Which of the following commands loads a kernel module along with any required dependency modules?
The command 'modprobe' loads a kernel module along with any required dependency modules. It examines the module's dependencies, loading them if they are not already loaded, thus ensuring that all dependencies are met. This makes 'modprobe' the correct command for the task described.
The answer is correct "Some modules have dependencies, which are other kernel modules that must be loaded before the module in question can be loaded. The modprobe command always takes dependencies into account when performing operations. When you ask modprobe to load a specific kernel module, it first examines the dependencies of that module, if there are any, and loads them if they are not already loaded into the kernel. modprobe resolves dependencies recursively: it will load all dependencies of dependencies, and so on, if necessary, thus ensuring that all dependencies are always met." https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrators-guide/kernel-module-driver-configuration/Working_with_Kernel_Modules/