Though the Windows thing was really funny 😂.

  • hstde@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Exactly type rm -rf / instead of rm -rf ./ and you ducked up. Well you messed up a long time ago by having privileges to delete everything, but then again, you are human, some mistakes will be made.

    • taladar@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      Deleting the current directory via ./ seems contrived since you would just use . or more likely the directory name from outside the directory. What does happen is rm -rf ${FOO}/ while ${FOO} is an empty string.