• Romanmir@lemmy.today
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    1 year 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
      4
      ·
      1 year 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
      3
      arrow-down
      1
      ·
      edit-2
      1 year 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
        4
        ·
        1 year 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.