/dev/null

A special file that throws away anything written to it and reads as empty.

In more detail

Redirect output there when you only care about a command's exit status, as in grep -q or cmd > /dev/null 2>&1. Reading from it gives an immediate end of file, which is a quick way to give a command empty input.

Related terms

Taught in

References

Certification courses