Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed.
- with most file systems that are usual on linux
Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed.
I wanted to remove an Adobe file because it wouldn't let me uninstall Adobe through the program management. It said it was being used. By explorer apparently. Checked online, all I had to do was rename the file, then delete it. Worked. But it's so dumb.
Btw this also method to prevent file/dir be automatic created: for dir make file with same name, for file other way.
Usually rename only replace other file, not dir. And if path exist but file, cannot open as dir, but also not create.
This was how you could prevent Cortana and some other stuff from being automatically reinstalled when Windows forced if. Uninstall the app via appx, or just delete the folder instead if it's not in use, and then replace it with a file with the same name so it can't remake the folder.
Cortana being reinstalled after I "deleted" it was the impetus for me to swap to Linux in the first place.
That and I was a CS student and our assignments had to run on Solaris which is closer to Linux than Windows.
You used Solaris when cortana was already a thing? That's great! :D
My university ditched Solaris like 20 years ago. Still have fond memories of cde lol
Cortana was released nearly 12 years ago and I'm not sure the Solaris box lasted much longer. It was the only box that connectable remotely at the time and you put your assignments on it to be marked by TAs. The computer labs were all Linux and Windows though.
I suspect it was around because it mostly just worked and probably some greybeard had scripted it all up to connect to the various student systems and automatically provision accounts and things.
I'm sure it's all Linux now.
Northern Scandinavia??
No Canada, and even then it was a bit of a relic.
It was slowly being replaced by vagrant in some courses and I think after I left I'm pretty sure they replaced whatever hardware it was on with something running Linux.
I remember it was mildly annoying because the Java compiler on it was a bit old and different in some way, though I can't really remember how.
Alright. π We also had a couple Solaris servers at my uni. They had the names "itchy" and "scratchy".
Ours didn't have fun names., or at least not ones that were exposed to students. I honestly didn't know too much about about them but I suspect at the time Sparc systems were one of the larger machines compute wise you could get outside of mainframes. So very suitable for a university multiuser setup.
Who is using my file?
lsof path/to/file
You almost always want to pair lsof with -n, as by default, it (slowly) lists a bunch of things that require name resolution.
$ time lsof >/dev/null
real 2m12.352s
user 0m0.499s
sys 0m1.217s
$ time lsof -n >/dev/null
real 0m1.600s
user 0m0.523s
sys 0m1.029s
$
meanwhile, me getting annoyed that a network mount whose endpoint is not available anymore just completely refuses to unmount, no matter what I do
At some point macOS introduced a bug that ejecting a usb drive that is open in the file viewer used to eject it doesnβt work
Windows being portrayed as a polite UwU in ΓΎis meme has always seemed off, to me. I imagine it as more surly and petulant.
I imagine it more as a condescending IT guy who isn't actually very good at his job and has secretly set up each machine to spy on the users (but again isn't very good at what he does so it isn't much of a secret).
Where did I read that the ΓΎ character doesn't really help against AI at this point? That it is pretty futile? Can't remember.
It doesn't have to be an 'against AI' thing, to be fair! It's also just fun to use.
The trick for windows is to rename the file and kill the process that's using it / reboot (if it's some unkillable service). The service won't then be able to find the file after reatarting and you can delete the renamed copy.
On linux this whole thing is done automatically by the OS: if a file is open and you delete it, it will disappear from the folder but its data won't actually be deleted from the disk until it's closed by every program. Some programs even use this trick to create invisible temporary files to offload some data from RAM to disk!
the windows command system is so dumb and unintuitive. what takes like a command and 2 arguments on Windows takes 3 times the effort and an unnecessarily long command syntax
all 48 comments