Study for the TestOut Linux Pro Exam with our engaging quiz. Prepare using our flashcards and comprehensive multiple choice questions, each with hints and explanations to help you succeed. Get ready for your Linux certification today!

Practice this question and more.


How can you view all installed modules in Linux?

  1. lsmod

  2. modinfo

  3. modprobe

  4. showmod

The correct answer is: lsmod

To view all installed modules in Linux, the appropriate command is **lsmod**. This command provides a list of the currently loaded kernel modules along with additional information such as the memory size and any dependencies among the modules. When you execute lsmod, it reads from the /proc/modules file, which contains this detailed information about the modules currently in use by the kernel. The other options serve different purposes: **modinfo** is used to display detailed information about a specific module, including version and parameters, but it does not list all modules. **modprobe** is a tool for adding or removing modules from the kernel; it does not display installed modules. Lastly, **showmod** is not a recognized command in standard Linux distributions for managing or viewing kernel modules. Therefore, lsmod is the command that fulfills the requirement of viewing all installed modules in the Linux environment.