Which file contains the configuration for modprobe?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The correct answer is the file that contains the configuration for modprobe, which is located at /etc/modprobe.conf. This file is essential for managing kernel modules in Linux. Modprobe is a command that allows you to add and remove modules from the Linux kernel, and the configuration file holds directives about which modules to load and their options.

Historically, /etc/modprobe.conf was the primary file used for modprobe settings, where you could specify module options and alias listings. In many modern Linux distributions, this functionality may be supported by the directory /etc/modprobe.d, where individual configuration files can be added for different modules. The presence of /etc/modprobe.conf ensures compatibility with scripts or system behaviors that depend on this configuration.

The other options listed do not serve this purpose: /etc/sysctl.conf is used to configure kernel parameters at runtime, /etc/resolv.conf is responsible for DNS resolution settings, and /dev/null is a special file that discards all data written to it and is commonly used in shell scripts to suppress output. None of these files relate to the loading and configuration of kernel modules, thereby highlighting why /etc/modprobe.conf is indeed the correct answer.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy