• xkforce@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    9 months ago

    How is letting you brick your install with little warning an advantage?

    rm -rf / you dont have permission to do that.

    sudo rm -rf / [linux dutifully commits sudoku until rm itself is gone]

    • Romanmir@lemmy.today
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      9 months ago

      And I think it’ll remove “rm” and keep right on going because Linux copies commands to ram then runs them, yeah?

      • gizmonicus@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        Oh yeah. I’ve done it just for fun before reimaging a machine. It will mostly complete (some stuff isn’t a real file so rm just fails), and your desktop environment will remain up and running while it happen. Then errors start popping up, icons stop working, nothing loads anymore, you can’t reboot or shutdown because those were actually commands, and they’re missing now…

      • xkforce@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        9 months ago

        Hmm I mean Ive never done it for obvious reasons but maybe? live cds/dvds load the whole OS in RAM and could erase everything but I am not sure about the OS on disk. I could try it in a vm and see what actually happens

        • Ooops@kbin.social
          link
          fedilink
          arrow-up
          3
          ·
          9 months ago

          Yes, it’s copied to ram. Which is also the reason you don’t need to stop programs while live updating them.

          The new version is only again copied from disk, when you start it at a later time.

    • FuglyDuck@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      9 months ago

      If your computer is doing puzzles while running the mindless tasks you assign it…. I suggest maybe finding more stimulating tasks. Just saying… ;)