Question 790
You have attempted this task on a test RHEL10 instance: An operator follows a live application log but accidentally reads only the first ten lines during troubleshooting. Which command output or observation best confirms its success?
Explanation
Correct Answer
A newly appended training event appears immediately without rerunning the command. This check confirms the expected effect of: Use `tail -n 30 -f /tmp/labapp.log` to follow appended fixture events in a test terminal. It distinguishes the intended result from the original failure mechanism: `tail -f` follows appended file content rather than providing only a static initial snapshot.
Incorrect Answers
`id -un`, `pwd`, and `printf '%s\n' "$HOME"` reflect the privileged login context. That verifies a separate lab task: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. It does not validate the implementation required here: Use `tail -n 30 -f /tmp/labapp.log` to follow appended fixture events in a test terminal.
The operator identifies documented syntax for `enable --now` and `is-enabled` from local manual pages. That verifies a separate lab task: The team needs the documented purpose and arguments of `systemctl` without accessing the Internet during training. It does not validate the implementation required here: Use `tail -n 30 -f /tmp/labapp.log` to follow appended fixture events in a test terminal.
`ssh -o BatchMode=yes student@hostB true` succeeds using an authorized key on the isolated lab. That verifies a separate lab task: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. It does not validate the implementation required here: Use `tail -n 30 -f /tmp/labapp.log` to follow appended fixture events in a test terminal.