you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 10 months ago (5 children)

I was trying to sudo rm -rf ./ Once and missed the / so I just used rm -rf . And this was before they added --no-preserve-root as a default so it just ripped through my entire drive.

  • source
  • hideshow 5 child comments
  • [–] 6 points 10 months ago (4 children)

    sudo rm -rf ./ and sudo rm -rf . are, as far as I know, the same command. Did you mean that you dropped the . and ran sudo rm -rf /?

    Fortunately for me, this never happened to me, but I have gotten pretty close to running rm -rf ~ after mistakenly creating a directory caller ~...

  • source
  • parent
  • hideshow 4 child comments