🫩🫩🫩🫩

  • Seefra 1@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    20 days ago

    “Hey Linux, can you just delete this file please?”

    “Sure thing bud, a program is using it, it’s ok, I will just unlink the inode anyway, the program can still access it until it closes the file”

    • xthexder@l.sw0.com
      link
      fedilink
      arrow-up
      0
      ·
      20 days ago

      This is honestly one of my favorite features of the linux filesystem. As a dev it makes things like replacing and hot-reloading plugins way easier.

      It turns out you can kind of get the same functionality on Windows if you rename the open file and place the new one with the original name, but it’s a bit of a hack.

        • mcv@lemmy.zip
          link
          fedilink
          arrow-up
          0
          ·
          20 days ago

          Yeah, super annoying. In Linux you can rename or move it and the app using it doesn’t care.

          Although having the option of listing the app using a file so I can kill the app would also be really nice to have. I’m sure Linux has something for that too, but I don’t know what it is.

    • affenlehrer@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      20 days ago

      The performance view thing that comes with windows also allows searching for file handles but it’s not very user friendly. Also not possible without admin rights if I remember correctly