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

Subscribe
Notify of
guest
3 Comments
Inline Feedbacks
View all comments
selimen
selimen
8 months ago

A and B are True, C file is overwriten

Francis
Francis
2 years ago

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).

Nikola
Nikola
2 years ago

B) is true, but C) is true also.