How to create /dev/null 

Newsgroups: comp.os.linux.setup
Date: 1999/01/21
:>> Does anyone know how to create /dev/null
: When all else fails:
: "man null"
: - man pages give you explicit instructions on creating a proper NULL device.
/bin/rm /dev/null
mknod -m 666 /dev/null c 1 3
chown root:mem /dev/null

Jayasuthan

How to create /dev/null 

null, zero - data sink

DESCRIPTION Data written on a null or zero special file is discarded.

Reads  from  the null special file always return end of file, whereas
reads from zero always return \0 characters.

How to create /dev/null 

Linux 

$ dir /dev/null /dev/zero
crw-rw-rw-    1 root     root       1,   3 Oct 22 20:04 /dev/null
crw-rw-rw-    1 root     root       1,   5 May  5  1998 /dev/zero

Solaris 

$ dir /dev/null /dev/zero
lrwxrwxrwx   1 root     root   1998 /dev/null -> ../devices/pseudo/mm@0:null
lrwxrwxrwx   1 root     root   1998 /dev/zero -> ../devices/pseudo/mm@0:zero
$ dir /devices/pseudo/mm@0:null /devices/pseudo/mm@0:zero
crw-rw-rw-   1 root     sys   17:39 /devices/pseudo/mm@0:null
crw-rw-rw-   1 root     sys    1998 /devices/pseudo/mm@0:zero