this post was submitted on 03 Oct 2025
1306 points (99.1% liked)

Programmer Humor

27412 readers
2177 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

🫩🫩🫩🫩

you are viewing a single comment's thread
view the rest of the comments
[–] sefra1@lemmy.zip 174 points 1 month ago (14 children)

"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 64 points 1 month ago (11 children)

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.

[–] oascany@lemmy.world 43 points 1 month ago (8 children)

Windows won't let you rename a file that's being used either.

[–] xthexder@l.sw0.com 3 points 1 month ago

Maybe it's only possible in certain cases, but I can tell you for certain it's possible with running exe's and loaded dll's. I have a CMake step on Windows that does this rename hack so my builds don't fail if I still have the app running.

load more comments (7 replies)
load more comments (9 replies)
load more comments (11 replies)