4.8k views
5 votes
Which of the following are important to remember when using the rmmod command to remove a module from the kernel? (select two.)

a) Ensure the module is not in use by any process
b) Verify that the module is listed in /etc/modules
c) Unload the module even if it is being used
d) Remove all dependencies of the module

User Miushock
by
8.6k points

1 Answer

4 votes

Final answer:

The important things to remember when using the rmmod command are to ensure the module is not in use by any process and to remove all dependencies of the module.

Step-by-step explanation:

When using the rmmod command to remove a module from the kernel, it is important to remember the following:

  1. Ensure the module is not in use by any process. This can be done by checking the output of the lsmod command or using the rmmod -f option to force removal.
  2. Remove all dependencies of the module. This is necessary because removing a module may cause other modules to become unusable if they depend on it.

It is not necessary to verify that the module is listed in /etc/modules before using the rmmod command, as this file is used to specify modules to be loaded at boot time, not for removing modules.

Additionally, it is not recommended to unload a module using the rmmod command if it is being used, as it may lead to system instability.

User Hasse
by
7.7k points