Linux Foundation Certified System Administrator (LFCS) — Question 32

Which of the following statements is correct regarding the command foo 1> bar?

Answer options

Correct answer: B

Explanation

The correct answer is B because the command 'foo 1> bar' redirects the standard output (stdout) of 'foo' to overwrite the contents of 'bar'. Option A is incorrect since it describes appending rather than overwriting, while options C, D, and E do not correctly describe the behavior of the command regarding standard input and standard error.