QuestionQ86Verified/Linux KernelCopy linkReport a problemAsk AstroTutorSave questionWhich command changes to the directory that contains the modules for the running kernel?Acd /lib/modules/$(uname -r)Bcd /lib/modules/$(kernel -v)Ccd /lib/modules/currentDcd /lib/modules/runningEcd /lib/modules/$(uptime -k)Show AnswerAnswerExplanationuname -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 moreLinux Kernel documentation: Building External ModulesLinux Kernel documentation: Kbuild MakefilesShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion