Search This Blog


Working With Device Node Files /dev/null

If /dev/null ever disappears you will need to re-create

To do this you need to run a special command called mknod
mknod -m 666 /dev/null c 1 3

From what I've read the major minor numbers are subject to change so see
man null
for further details

You cannot just touch new files in /dev/ you will always get denied so you need to be a root user as well as use the mknod command.


No comments:

Post a Comment