• Silejonu
        link
        fedilink
        149 months ago

        No you don’t.

        rm -fr / requires the flag, but rm -fr /* does not.

      • @russjr08@outpost.zeuslink.net
        link
        fedilink
        English
        59 months ago

        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 /).