分类: LINUX
2008-04-29 14:23:50
depmod In order to load all depended-upon modules, modprobe relies upon a catalog of module dependencies. This catalog is created with the depmod command. Specifically, typing depmod -a creates the catalog in /lib/modules/version/modules.dep, where version is the kernel version number. This command normally appears in a startup script, such as /etc/rc.sysinit or /etc/init.d/boot.localfs. Thus, you shouldn't need to type this command unless you update your modules and don't want to reboot.
rmmod This command unloads kernel modules; it's the opposite of insmod. If you add the -r or --stacks option, the command deletes a set of modules—essentially, the command works as the opposite of modprobe rather than of insmod.