In which of these cases will a file called error.txt be created?
In which of these cases will a file called error.txt be created?
A . Running cat filename 1> errors.txt when there is no such file
B . Running cat filename 2> errors.txt when there is no such file
C . Running cat filename 1> errors.txt when there is such a file
D . Running cat filename 0> errors.txt when there is such a file
Answer: B
Latest 101-500 Dumps Valid Version with 242 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
A and B are True, C file is overwriten
Answer ‘C’ is definitely stupid (so it is absurd to be the correct one), because the file already exists, but in any case it is NOT written with the error message (standard error is not redirected).
B) is true, but C) is true also.