TheTechGuide Forum

General Category => Software => Topic started by: Space Between on May 03, 2003, 10:20:26 AM

Title: oops.. /dev/null overwrote
Post by: Space Between on May 03, 2003, 10:20:26 AM
ok i overwrote the /dev/null file
it was listed as a character file or device file before???not sure but assuming that.

now if i do something like bash myscrtip > /dev/null
it actually outputs the contents to the /dev/null file
instead of nulling it

any clue on how i could recreate that \"special\" file /dev/null

????
Title: oops.. /dev/null overwrote
Post by: Josetann on May 03, 2003, 12:25:23 PM
Try \"mknod /dev/null c 1 3\"

Then do a \"chmod 777 /dev/null\" so anyone can write to it.