LPI Exam Questions

which of the following lines in one of the files in /etc/rc.d so the correct module dependencies wil

The normal use of depmod is to include which of the following lines in one of the files in /etc/rc.d
so the correct module dependencies will be available after booting the system?

A.
/sbin/depmod -a

B.
/sbin/depmod -p

C.
/sbin/depmod -r

D.
/sbin/depmod -c

Explanation:
As described by <a href=http://www.oreillynet.com/linux/cmd/d/depmod.html
target=_blank>http://www.oreillynet.com/linux/cmd/d/depmod.html</a>, depmod creates a

dependency file for the modules given on the command line. This dependency file can be used by
modprobe to automatically load the relevant modules. The normal use of depmod is to include the
line /sbin/depmod -a in one of the files in /etc/rc.d so the correct module dependencies will be
available after booting the system.