How can the normal output of a command be written to a file while discarding the error output?
A) command >2>file 1&>/dev/null
B) command < output > /dev/null
C) command > discard-error > file
D) command > /dev/null 2&>1 output
E) command >file 2>/dev/null
Correct Answer:
Verified
Q151: Which file should be edited to select
Q152: Which of the following sequences in the
Q153: In the vi editor, which of the
Q154: Which of the following commands updates the
Q155: Which of the following commands can be
Q157: What is the output of the following
Q158: From a Bash shell, which of the
Q159: Which shell command is used to continue
Q160: Which of the following commands prints a
Q161: Which of the following commands lists all
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents