Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 6
    I once found that /dev/null was replaced with a normal file which only root could write to. I thought for a moment that I would have to reinstall everything but as mentioned below, the recovery is trival if you know the trick. Commented Dec 24, 2011 at 12:15
  • 1
    I managed to remove /dev/null by getting my pipe wrong flipping $ and & around when running an rm command in a script. Ouch! Commented Oct 9, 2015 at 22:28
  • @flickerfly You develop scripts as root? Commented Jan 14, 2020 at 14:02
  • 3
    If the permissions are required, you have to test it eventually. Didn't say it was in production. Commented Jan 14, 2020 at 15:27