• 👁️👄👁️@lemm.ee
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    1 年前

    I’ve never actually tried this but feel like rm should have a built in warning specifically for that command letting them know they’ve been trolled and have a y/N prompt.

        • russjr08@outpost.zeuslink.net
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          1
          ·
          1 年前

          I think that is only if you pass /, I don’t think the flag is required for /* which is what is shown here - if I remember right, it’s because the * triggers the shell to expand the paths and that flag is only built to protect / (from say, having an empty variable alongside /).

    • thomas@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 年前

      Come on, it is super fun. Just install VirtualBox and set up a virtual machine, make sure there is no funky mount point that touches your host machine, and go nuke that VM !