QuestionQ86

VerifiedLinux Kernel

Which command changes to the directory that contains the modules for the running kernel?

Explanation

uname -r returns the release of the running kernel, and kernel modules are installed under /lib/modules/$(KERNELRELEASE). Therefore, /lib/modules/$(uname -r) selects the module directory corresponding to the active kernel.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!