Candidates should be able to manage and/or query a 2.6.x kernel and its loadable modules.
Key Knowledge Areas:
The following is a partial list of used files, terms, and utilities:
/lib/modules/kernel-version/modules.dep/etc/proc/sys/kernel/ insmod is a trivial program to insert a module into the kernel. usage: insmod [filename] [module options ...]
lsmod is a trivial program which nicely formats the contents of the /proc/modules, showing what kernel modules are currently loaded.
modinfo extracts information from the Linux Kernel modules given on the command line. If the module name is not a filename, then the /lib/modules/version directory is searched.
modinfo by default lists each attribute of the module in form fieldname : value, for easy reading. The filename is listed the same way (although it's not really an attribute).
usage: modinfo [-0] [-F field] [modulename|filename ...]
uname prints system information. Parameters:
-a, --all print all information, in the following order, except omit -p and -i if unknown: -s, --kernel-name print the kernel name -n, --nodename print the network node hostname -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version -m, --machine print the machine hardware name -p, --processor print the processor type or "unknown" -i, --hardware-platform print the hardware platform or "unknown" -o, --operating-system print the operating system
The /lib/modules/kernel-version/modules.depfile contains a list of module
dependencies. It is generated by the depmod command. This file appears in
every kernel version directory.
The modprobe command uses this file to determine the order in which modules
are (un)loaded in the kernel. Modules are loaded from right to left and are removed from left to
right.