Author Topic: oops.. /dev/null overwrote  (Read 635 times)

Space Between

  • Guest
oops.. /dev/null overwrote
« 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

????

Offline Josetann

  • admin
  • Administrator
  • Hero Member
  • *****
  • Posts: 10136
  • Karma: +0/-0
    • View Profile
oops.. /dev/null overwrote
« Reply #1 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.