A Linux administrator has installed a new Fibre Channel host bus adapter (HBA) in a server. After booting the system, the administrator confirms the hardware is visible to the OS using the lspci command. However, the output of lspci -k includes the following line for the new device:
Kernel driver in use: <none>
Which of the following commands should the administrator use FIRST to attempt to load the correct, available kernel module for the new HBA?
The correct command is modprobe. The modprobe command is used to intelligently add or remove a module from the Linux kernel. It searches for the module in the standard module directory (/lib/modules/$(uname -r)) and automatically handles any module dependencies. The insmod command also loads a module, but it requires the full path to the module file and does not resolve dependencies, making modprobe the more appropriate and robust first choice. The rmmod command is used to remove a kernel module, which is the opposite of what is needed. The depmod -a command creates a list of module dependencies but does not load any modules itself.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a kernel module in Linux?
Open an interactive chat with Bash
How does `modprobe` handle dependencies differently than `insmod`?
Open an interactive chat with Bash
What does the `depmod -a` command do, and why doesn’t it load modules?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access