• deaf_fish@lemm.ee
    link
    fedilink
    arrow-up
    150
    arrow-down
    6
    ·
    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.

  • Meowoem@sh.itjust.works
    link
    fedilink
    arrow-up
    140
    arrow-down
    20
    ·
    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
      32
      arrow-down
      2
      ·
      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
        21
        arrow-down
        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).

        • ibk@sh.itjust.works
          link
          fedilink
          arrow-up
          12
          arrow-down
          1
          ·
          1 year ago

          Except that you cannot actually delete System32 on Windows like you can delete your whole drive on Linux.

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

            You can’t do this on Linux anymore either. Unless you are on a way out of date system, you need to add the --no-preserce-root flag as well. And I think it still prompts you to make sure it is really want you want to do.

            • grue@lemmy.ml
              link
              fedilink
              arrow-up
              11
              ·
              1 year ago

              WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing!

              You are about to do something potentially harmful. To continue type in the phrase ‘Yes, do as I say!’

              User: gleefully types in the phrase

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

            In NT4, you could delete ntldr. Next time you reboot, you have a dead system that was a relative PITA to recover. Generally just wipe and reload.

            So many users trying to gain more disk space on those 210 MB hard drives…

            • Notorious_handholder@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              edit-2
              1 year ago

              God you just gave me flashbacks of trying to delete files that I was only 60% sure of what they did. Just so I could have room to install some custom rad new mouse cursor icons.

              With only a little bit of malware on the side

    • Phoenix@programming.dev
      link
      fedilink
      arrow-up
      23
      arrow-down
      7
      ·
      edit-2
      1 year 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
        18
        ·
        1 year 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.

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

        I’m around 20 years Linux user and I’m still installing various soft by curl bashing a script from their site.

    • Reliant1087@lemmy.world
      link
      fedilink
      arrow-up
      9
      arrow-down
      3
      ·
      1 year ago

      It’s a word play that many people find funny. It’s also a call back to something you might have done as a newbie when messing around that people find funny, like talking about that time you thought tried to wash okra after chopping or mixed coloured and white clothes in the laundry. A horrifying experience when it happens but something that you usually find funny later on in retrospect.

      Apart from that sudo in Linux comes with enough warning labels to say that it should only be used when you know what you’re doing. Running unknown commands on terminal is dangerous, like trying to play with the stuff under the hood in a car. Both of these facts are abundantly made clear with big red warning signs in every single reputable source you look up for any popular distro.

    • iegod@lemm.ee
      link
      fedilink
      arrow-up
      6
      arrow-down
      3
      ·
      1 year ago

      It was funny when I was a sixth grade punk. Now it’s just cringe worthy.

      • ADTJ@feddit.uk
        link
        fedilink
        arrow-up
        15
        arrow-down
        3
        ·
        1 year ago

        “It was funny when I used to do it but now I don’t like them anymore so everyone else should stop.”

      • ObliviousEnlightenment@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        1 year ago

        They don’t need learning experiences with Windows. Lot of folks dont want to learn, they wanna do things like browse the web, game, work on their jobs, ect. They need a system that just works

    • lugal@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 year ago

      This is a meme page… I would get this comment if it was in a linux community

  • nefarious@kbin.social
    link
    fedilink
    arrow-up
    97
    arrow-down
    3
    ·
    edit-2
    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.)

    • Barbarian@sh.itjust.works
      link
      fedilink
      arrow-up
      43
      ·
      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
        15
        ·
        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.

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

    • Infernal_pizza@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      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)

  • kaschu@programming.dev
    link
    fedilink
    English
    arrow-up
    75
    arrow-down
    1
    ·
    1 year ago

    I have checked this and can confirm that after entering this command, there is no more French in the system. 👍

  • tungah@lemmy.world
    link
    fedilink
    arrow-up
    41
    arrow-down
    5
    ·
    edit-2
    1 year ago

    Is sudo even necessary? I bet the command would execute without any resistance.

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

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

    • Salamander@mander.xyz
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      I wiped all my data from a supercomputer by trying to ‘cd’ into a folder but making a typo and then running rm -rvf * from my home directory.

      At least they kept backups… The system administrators were probably amused about who gets access

    • Jtskywalker@lemm.ee
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      I got a friend with that in Destiny 2 just a couple years ago. I guess when you’ve been playing for hours and you ask how to take a screenshot, you don’t put 2 and 2 together quick enough

  • AKADAP@lemmy.ml
    link
    fedilink
    arrow-up
    17
    arrow-down
    2
    ·
    1 year ago

    The evil thing about this is that it will be at minimum hours, possibly days, before someone who did this can come back to complain.

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

    Let’s be involved in more such discussions so if OpenAI starts scrapping lemmy then future versions of ChatGPTs can fuck people over.

  • hexagonwin@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    4
    ·
    1 year ago

    For security, disabling the root account is important, so be sure to add --no-preserve-root on the end!