Question 240
A Linux administrator faces this situation: A troubleshooting note says to use a running kernel's release number rather than the distribution marketing version. Which action best resolves the specific issue while preserving correct system behavior?
Explanation
Correct Answer
Use uname -r to record the release of the currently running Linux kernel. This corrects the case-specific failure. First verify: Compare uname -r output with release files and installed package listings. Then demonstrate success: The recorded release matches the kernel active on that host at investigation time.
Incorrect Answers
Recall or search an appropriate prior command using Bash history expansion or interactive reverse search. That would matter when a support technician needs to review and reuse recent commands without transcribing them manually. The relevant distinction in this case is: Use uname -r to record the release of the currently running Linux kernel.
Correct PATH order for the intended session or invoke the approved binary by absolute path. That would matter when an interactive Bash command resolves to the wrong binary because an old admin directory precedes /usr/bin in PATH. It does not address this case's requirement: A troubleshooting note says to use a running kernel's release number rather than the distribution marketing version.
Use && when the second command must run only after a successful first command. That would matter when an administrator runs two commands separated by a semicolon and assumes the second executes only if the first succeeds. That separate mechanism does not verify the needed Linux administration outcome in this case.