null - Data sink
Data written on a null special file are discarded.
Reads from a null special file always return 0 (zero)
bytes.
To read a floppy disk and display the total number of
records read in and output to /dev/null using the dd command:
dd if=/dev/disk/floppy0 of=/dev/null
To create a zero length file using the cat command:
cat > foo < /dev/null
/dev/null
null(7)
[ Back ] |