• deaf_fish@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    Don’t run this command unless you want to delete all the files on your system and break Linux on your system.

  • nefarious@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Careful, you have to also add --no-preserve-root to make sure you get all of it out. If you leave the roots, it’ll just grow back later!

    (But seriously, don’t actually do this unless you’re prepared to lose data and potentially even brick your computer. Don’t even try it on a VM or a computer you’re planning to wipe anyway, because if something is mounted that you don’t expect, you’ll wipe that too. On older Linux kernels, EFI variables were mounted as writable, so running rm -rf / could actually brick your computer. This shouldn’t still be the case, but I wouldn’t test it, myself.)

    • Infernal_pizza@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I ran it in Hyper-V once to see what happens and it deletes all the boot entries from the VM firmware (including pxe boot and the dvd drive)

    • pomodoro_longbreak@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Careful, you have to also add --no-preserve-root to make sure you get all of it out. If you leave the roots, it’ll just grow back later!

      Oh my god I effin guffawed, thanks for that

    • Barbarian@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Fun fact, rm -rf /* does not need --no-preserve-root. It will happily start as technically, according to the preserve root check, /* is not root as the target is not /

      • koper@feddit.nl
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 year ago

        It’s slightly different. Your shell will see the /* and replace it with all the directories under /, e.g. /bin /dev /etc /home etc. So the actual command that runs is rm -rf /bin /dev /etc /home etc.

  • Meowoem@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I get these are jokes but I really don’t find anything funny about it, it becomes a meme and then people start getting more creative and pushing it more and being more covert and people come up with other little japes then new Linux users get their shit destroyed and maybe important info gets lost or precious memories so they say Linux is a piece of shit and go back to windows.

    It’s not even funny to start with so when it inevitably inspires people to be assholes and bullies that’s all we’ve achieved.

    • newline@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I totally agree. We should be more open and welcoming to new users. Imagine some new people on the steam deck being curious and diving into Linux and running into this. Undoubtedly, we’d lose at least a few users that brick their machines.

      I get that this humor fits and entertains the technically inclined of us, but if we truly want more widespread use of Linux, shouldn’t we open our arms to less technical users as well? Besides, even for the more technical of us, this joke is so old and run down 🙃

      • dot20@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Eh, this is a classic joke by now. There’s those jokes on the Windows side too (like the ‘delete system32’ one).