Null

From Hackepedia
Revision as of 09:02, 25 October 2005 by Frankk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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