Null

From Hackepedia
Jump to navigationJump to search

The null device located in /dev/null discards any data written to it. It's a black hole that eats everything that is sent to it. Unwanted output in shells can be redirected to /dev/null. Here is an example crontab where /dev/null is used to prevent emails from being sent:

*/5 * * * * /usr/local/bin/fetchmail > /dev/null 2>&1