Question 1
Original unofficial RHEL 10 RHCSA skill-check scenario: A new RHEL 10 administrator types `systemctl status sshd;` but accidentally joins an unrelated test command without a separator. Which action best addresses this situation?
Explanation
Correct Answer
In this RHEL 10 system administration case: A new RHEL 10 administrator types `systemctl status sshd;` but accidentally joins an unrelated test command without a separator. Underlying reason: A shell parses command separators before invoking any program. The most direct, approved resolution is: Separate the shell commands with a valid semicolon or run them individually after checking their arguments. Confirm it by checking: Each command executes independently and its exit status can be inspected. Sustain the fix by: Check composed administrative commands in a nonproduction shell first. This is the INTENDED response for the best approved troubleshooting or configuration action. It is a knowledge-check explanation, not a verified hands-on Red Hat exam answer;
Incorrect Answers
Check the utility's documented usage and position options and arguments as supported. That is not sufficient for the reported RHEL task, because a shell parses command separators before invoking any program.
Redirect standard error with `2>` to an appropriate error file or use a controlled combined stream. That is not sufficient for the reported RHEL task, because a shell parses command separators before invoking any program.
Use an appropriate login shell such as `su - devops` when a complete target-user environment is required. That is not sufficient for the reported RHEL task, because a shell parses command separators before invoking any program.