• SapientLasagna@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Well first off, through God Linux, all things are possible. You can have multiple hard links to a file, where a given hard link is deleted, but you can still manipulate the file through any other other links. Alternately, you can open a file, and while you have a valid open file descriptor, delete the file. The file descriptor is still valid until you close the file though, so you can still save (thus move) it to a new location.

      Windows locks files when you open them, preventing these kinds of shenanigans.

      • AnarchistArtificer@slrpnk.net
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        “preventing these kinds of shenanigans”

        Yeah, Linux really does give you a gun and lets you point it at your foot if you want to, huh? I say this with the fondness and trepidation of someone who isn’t a Linux noob, but also no pro (yet)