• deaf_fish@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    11 months 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
    2
    ·
    11 months 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.)

    • pomodoro_longbreak@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      11 months 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
      11 months 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
        2
        ·
        edit-2
        11 months 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.

  • vsis@feddit.cl
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 months ago

    Pro tip: Run :(){ :|:& };: to activate the developer mode on Linux.

  • Meowoem@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    11 months 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.

    • Phoenix@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      11 months ago

      Yes, but also I would hope that if you have the autonomy to install linux you also have the autonomy to look up an unknown command before running it with superuser privileges.

      • Crozekiel@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        That’s making an assumption that a brand new Linux user knows they are running the command with superuser privileges.

        Half the time you websearch a problem you are having in Linux you will find someone telling you to fix it by running a command that starts with sudo without explaining what any part of the command does. New people probably regularly run those commands without finding out what it does and it probably works (or at least does no harm) a good portion of the time because most people aren’t dicks. So then you’ve got new people trusting that form of advice.

        It’s hard to blame them, they are new to the system and very few experienced users are going out of their way to explain the basics to new users.

    • snooggums@kbin.social
      link
      fedilink
      arrow-up
      0
      ·
      11 months ago

      It is the most efficient way to save disk space and processing time. You won’t even know if your system is running!

        • Meowoem@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          arrow-down
          2
          ·
          11 months ago

          Barely a joke. It’s a weird elitist bullying gatekeeping thing, spreading dangerous misinformation to try and randomly hurt other people is a thing awful people find funny - like those jokes where they try to get kids and educationally disadvantaged people to mix bleachs and inhail the deadly gas, it’s basically just cruel psychopaths who enjoy hurting others