Skip to content

Glossary: Node.js Basics

/dev/null

Also written: $null

A special file on macOS and Linux that throws away anything written to it. Adding `2>/dev/null` hides a command's stderr, which shows the logger writes there.

Where the book teaches it

Related terms

stdin / stdout / stderr2> (redirect stderr)