Linux OS Shell Question:
Download Questions PDF

cmd > abc 2>&1 will:
a) Write file2 to file1
b) Write standard output and standard error to abc
c) Write standard error to abc
d) Write standard output to abc & standard error to monitor

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

b) Write standard output and standard error to abc

Download Linux Shell Interview Questions And Answers PDF

Previous QuestionNext Question
The redirection 2> abc implies:
a) Write file 2 to file abc
b) Write standard output to abc
c) Write standard error to abc
d) none of the mentioned
cmd 2>&1 > abc will:
a) Write file2 to file1
b) Write standard output and standard error to abc
c) Write standard error to abc
d) Write standard output to abc & standard error to monitor