PrepAway - Latest Free Exam Questions & Answers

How can the normal output of a command be written to a file while discarding the error output?

How can the normal output of a command be written to a file while discarding the error
output?

PrepAway - Latest Free Exam Questions & Answers

A.
command >file 2>/dev/null

B.
command >2>file 1&>/dev/null

C.
command < output > /dev/null

D.
command > discard-error > file

E.
command > /dev/null 2&>1 output


Leave a Reply