In Bash, inserting 1>&2 after a command redirects
Suggested Answer: C
Get Premium LFCS Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
17 comments · newest first
LE
Lenna
13 hours ago
I'm leaning towards C too. Makes sense for error handling.
RI
Rikki
6 days ago
I feel like it's D. Standard error to standard output.
AL
Alayna
11 days ago
I think it's C. Standard output to standard error.
JU
Jules
16 days ago
Huh, I didn't know that! Sounds tricky.
AN
Annice
21 days ago
Yep, definitely C! Classic redirection.
AL
Alyssa
26 days ago
Wait, are you sure? I thought it was D) standard error to standard output.
CA
Camellia
1 month ago
Totally agree with that!
TO
Toshia
1 month ago
That's C) standard output to standard error.
LI
Linn
1 month ago
This is confusing, I thought it was about input/output redirection.
VA
Valda
2 months ago
Yup, C is the right answer!
LO
Louvenia
2 months ago
Wait, are you sure? I thought it was D).
ST
Stephaine
2 months ago
Totally agree with that!
MA
Marguerita
2 months ago
That's C) standard output to standard error.
JA
Jaleesa
2 months ago
I recall that 1>&2 means sending output to error, so that would be C, right? But I’m not completely confident.
CA
Carmen
2 months ago
I practiced a similar question where we had to redirect errors. I feel like the answer is D, but I could be wrong.
RO
Rosendo
3 months ago
I'm not entirely sure, but I remember something about file descriptors. Isn't 1 for stdout and 2 for stderr?
JE
Jenifer
3 months ago
I think 1>&2 redirects standard output to standard error, which might be option C?