• z3bra@lemmy.sdf.org
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    2 years ago

    I tried but got an error:

    :& : Command not found
    

    Is it expected ? Did I type something wrong ? I’m confused…

    • bmaxv@noc.social
      link
      fedilink
      arrow-up
      28
      arrow-down
      1
      ·
      2 years ago

      @wgs

      Generally, don’t just copy paste things you find online.

      Something else to be aware of and stay away from is “rm -rf /” which will delete everything on your computer, including your operating system. Naturally this will crash the computer and you will not be able to start it again.

      (You should be able to boot from a usb stick though.)

        • bmaxv@noc.social
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          2 years ago

          @BaardFigur My dude, I understand and celebrate the memes, but please understand that linux first time using is a sensitve period in people’s lives and the reach of modern social media means there is some x% of users who will have a bad time, because they saw that meme and took it seriously.

          It’s a statistical guarantee.

      • z3bra@lemmy.sdf.org
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        2 years ago

        I just tried your command and it yields a lot of Permission denied. Is it expected or your command is incomplete ?

        • bmaxv@noc.social
          link
          fedilink
          arrow-up
          14
          ·
          2 years ago

          @wgs I really hope you’re trolling. Don’t do that.

          Yes, this is expected and means the regular safeties are working. Don’t turn those off please.

                  • Rustmilian@lemmy.world
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    edit-2
                    2 years ago

                    sudo cat /dev/urandom > /dev/*
                    Or
                    sudo dd if=/dev/urandom of=/dev/sda bs=4k conv=notrunc,noerror

                    P.s. sudo cat /dev/urandom > /dev/* can cause physical damage to all hardware components, not just destroy your drives data.

    • beepnoise@beehaw.org
      link
      fedilink
      arrow-up
      13
      ·
      2 years ago

      It’s a fork bomb. Specifically it’s a piece of code that recursively calls itself and then it calls itself to run the code.

      Thank goodness it did not work, but please do not actually run code like this!! Do your best to figure out what the code is doing before you attempt to run it!

      • z3bra@lemmy.sdf.org
        link
        fedilink
        arrow-up
        18
        ·
        edit-2
        2 years ago

        Nevermind I figured what went wrong, I mistyped it initially ! It would have been much easier to copy paste it if it wasn’t a picture…

        Fun fact, the command displays a nice cat picture in ASCII :)

        Edit: screenshot