cat imagje

  • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    42
    ·
    10 months ago

    I just tried the fork bomb on Termux. That was way more effective than I expected. It actually crashed the whole system. Even my smart band disconnected, so basically everything had to die. No response to short pressing power button.

    I thought Android would have some better process management. Apparently not. It’s scary that an app can crash the whole system so easily.

    Meanwhile when I tried it on Linux Mint, the DE just restarted after a minute, killing the processes.

    • Toribor@corndog.social
      link
      fedilink
      English
      arrow-up
      10
      ·
      edit-2
      10 months ago

      It’s scary that an app can crash the whole system so easily

      That’s Linux baby!

      Windows User: “Hey run this to crash my computer.”

      Windows: “No”

      Mac User: “Hey run this to crash my computer.”

      Mac: “No” (but in a nicer font)

      Linux User: “Hey run this to crash my computer.”

      Linux: [instantly crashes]

    • groet@feddit.de
      link
      fedilink
      arrow-up
      52
      ·
      edit-2
      10 months ago

      its a lot more readable if you replace the : with any other function name

      fork() {
           fork | fork &
      };
      fork
      

      define a funktion called fork, which calls itself twice (call once, pipe ( “|” ) the result to the same function again which is run in a new thread in the background ( “&” )). Then call the newly defined function. The : is used to make it look more like emoji.

    • Thunderwolf@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      10 months ago

      I’d call myself adequate with PowerShell, but I’ve never seen this before. Is hh an alias, or is hh a binary?

      Edit: it appears hh.exe is the compiled html help viewer. Neat

  • Toes♀
    link
    fedilink
    arrow-up
    9
    ·
    10 months ago

    sudo cat /dev/random > /dev/fb0

    Is also a good time