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

  • N3Cr0@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    6 hours ago

    rm -rf <some placeholder>

    Works for . current directory. Yay!

    … also works for / system root. 🔥 Nay!

    • CameronDev@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      6 hours 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.