Multiple choice technology operating systems

Whats the procedure to ensure that the output of a command is not displayed on the terminal?

  1. command >

  2. command > /dev/null

  3. command | cat *

  4. command < /dev/null

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Redirecting stdout to /dev/null discards command output. The > operator redirects, and /dev/null is a special device that absorbs all writes. Option A is incomplete (missing target), option C is nonsense, option D redirects input not output.