Worst programming mistake I ever made:
rm -rf * in the root directory

  • 0
    curious, what happened? did it immediately crash and burn? I would imagine a lot of the files it would be unable to delete because running procs have open handles on them
  • 0
    @rozzzly it was a local server on a VM, so had to make a new sever and redeploy the application, the required server and the applications take hours to make and deploy😫
    Basically, the day was wasted
  • 1
    This happened too me too often (not root directory but often some work directory)

    I use now trash-put instead of rm. Also add bash/zsh aliases:

    # asks you before it overrides files
    mv→mv -i
    cp → cp -i
Add Comment