How to re-create /dev/null

From Wiki
Revision as of 23:05, 2 February 2011 by Scott (talk | contribs) (Created page with 'If you screw up /dev/null as root, here is how to recreate it: <pre> rm -f /dev/null mknod /dev/null c 1 3 chmod a+w /dev/null </pre>')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If you screw up /dev/null as root, here is how to recreate it:

rm -f /dev/null
mknod /dev/null c 1 3
chmod a+w /dev/null