Intermediate Linux & Shell Scripting
Q56 / 100

What is the purpose of "/dev/null"?

Correct! Well done.

Incorrect.

The correct answer is B) A special device file that discards all data written to it and returns end-of-file immediately when read, often used to suppress output

B

Correct Answer

A special device file that discards all data written to it and returns end-of-file immediately when read, often used to suppress output

Explanation

Redirecting output to "/dev/null" (e.g. "command > /dev/null 2>&1") discards both stdout and stderr, useful when you want to run a command without seeing its output.

Progress
56/100