This happend to me right noww as I tried to write a gui task manager for the GNU/Linux OS

  • N3Cr0@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    rm -rf <some placeholder>

    Works for . current directory. Yay!

    … also works for / system root. 🔥 Nay!

    • CameronDev@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      That won’t crash your kernel, and I was more curious about the OPs example. Task management is basically reading some files, and sending signals, it should be near impossible to crash the system.