• stupidcasey@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    19 hours ago

    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.

    • beegnyoshi@lemmy.zip
      link
      fedilink
      arrow-up
      4
      ·
      17 hours ago

      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 ~