/dev/null
to be «an empty data source and infinite data sink». /dev/null
is discarded.
/dev/null
returns EOF (end of file) mv
command overwrites /dev/null
: $ sudo mv a-file /dev/null
/dev/null
is not the special device file anymore. /dev/null
… $ sudo rm /dev/null
$ sudo mknod -m 0666 /dev/null c 1 3