LFCS Certification Practice Test
LFCS Certification Shell Scripting and Automation 3
Which redirection syntax correctly sends both stdout and stderr to a file named output.log?
Select your answer
A
command 2> output.log
B
command 1>&2 output.log
C
command > output.log 2>&1
D
command | tee output.log 2>&1
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 Study This Quiz as Flashcards →