Saturday, August 15, 2009

LPI 102v part_004

031. You wish to install the module fat.o into the kernel. Type in the simplest command to do this, assuming there are no dependencies for this module :


Ans : insmod fat

032. What modprobe option will cause inactive kernel modules to be unloaded ?

A. autoclean
B. incative
C. remove
D. timeout
E. holdoff


Ans : A


033. You are using insmod. You do not want to use the default configuration file /etc/ modules.conf. What environment variable should you modify ?

Ans : MODULECONF

Explanation : The environment variable MODULECONF can also be used to select a different configuration file from the default /etc/modules.conf (or /etc/conf.modules (deprecated)). This environment variable will override all the definitions above.


034. You can find out how much memory the kernel is using by taking the total amount of memory in your machine and subtracting from it the amount of :

A. "total mem" in /proc/meminfo
B. "total mem" in /proc/memused
C. "total mem" in /proc/memcurrent
D. Note of the choices

Ans : A

Explanation : You can find out how much memory the kernel is using by taking the total amount of memory in your machine and subtracting from it the amount of 'total mem' in /proc/meminfo or the output of the command 'free'.

035. What command will load groups fo modules into the kernel as needed ?

Ans : modprobe

036. If the module file name is given without directories or extension, insmod will search for the module in some common default directories. what environment variable can be used to override this ?

Ans : MODPATH

Explanation : If the module file name is given without directories or extension, insmod will search for the module in some common default directories. The environment variable MODPATH can be used to override this default. If a module configuration file such as /etc/modules.conf, it will override the paths defined in MODPATH.


037. Which of the following could be used to load kernel modules for a 2.4.x kernel ?

A. vi/proc/modules
B. rmmod
C. kmod
D. depmod

Ans : C


038. Loadable kernel modules can (choose all that apply ) :

A. Save memory
B. ease configuration
C. include filesystems
D. include ethernet card drivers


Ans : ABCD

Explanation : Loadable kernel modules can save memory and ease configuration. The scope of modules has grown to include filesystems, ethernet card drivers, tape drivers, printer drivers, and more.

039. What command would rebuild the ld.so cache file ?

A. ldd
B. ldconfig
C. ld.so.cache -rebuild
D. ld

Ans : B


40. What file should be edited to make the system aware of newly added library files ?

A. /etc/modules.conf
B. /etc/conf.modules
C. /etc/ld.so.conf
D. /etc/ld.so.cache
E. /etc/LD_LIBRARY_PATH.conf

Ans : C

No comments:

Post a Comment