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
    6
    ·
    1 day ago

    rm -rf <some placeholder>

    Works for . current directory. Yay!

    … also works for / system root. 🔥 Nay!

      • N3Cr0@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        4 hours ago

        It should, but I the end it depends on your system. Each distro has their own default behavior.

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