Question 360
During a Linux maintenance review, A scheduled health check appends a status line with a single greater-than redirect and erases the previous day's report. Which initial check most directly isolates the reported issue?
Explanation
Correct Answer
The first useful check is: Inspect the script's stdout redirection and the report file's modification history. The reported scenario is: A scheduled health check appends a status line with a single greater-than redirect and erases the previous day's report. A responsible next step after confirming that evidence is to use append redirection for additional report lines while retaining any required rotation policy. This prevents an unrelated configuration change and leaves a measurable result: two consecutive checks leave both timestamped lines available in the report.
Incorrect Answers
Check whether stdout and stderr are separately redirected in the invoking shell. The check concerns whether stdout and stderr are separately redirected in the invoking shell, not inspecting the script's stdout redirection and the report file's modification history.
Inspect which process produces standard output and which process consumes standard input. This assesses which process produces standard output and which process consumes standard input; it does not determine the reported condition—during a Linux maintenance review, A scheduled health check appends a status line with a single greater-than redirect and erases the previous day's report.
Examine the pipeline commands' individual status codes and stderr destination. The case-specific requirement is inspecting the script's stdout redirection and the report file's modification history, which that option does not establish.