/dev/null is not a character device

If you get error like “/dev/null is not a character device!”, do not panic. It is because you have set ┬áthe value /dev/null set to a folder/file or anything else.

To overcome this issue, remove the /dev/null first.

rm -f /dev/null

Next, create the /dev/null as character device.

mknod /dev/null c 1 3

Now, you have done and you may check if it is created correctly.

[email protected] [~]# ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Dec  6 15:59 /dev/null


Published by

Mick Genie

Mick Genie is the founder of MickGenie.com and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.