mac shenanigans
Nov. 27th, 2006 17:26when emptying the trash, i get "The operation cannot be completed because the item [some file] is in use." as far as i can see, it's not.
terminal. root.
except it doesn't work in this case. lsof doesn't know about this file. something is b0rken.
force-quitting and relaunching the finder doesn't release the file either.
oh well.
that's very unixy though. i would like to know whether there's a more mac way of restoring order in trash land.
oh, and we now have over a foot of snow, and i don't want to drive anywhere, so the cats are getting canned food from the emergency reserves. i almost wish i hadn't whined about how it wasn't real good snow yesterday. :)
terminal. root.
lsof [filename] should generally show which app is hanging onto this file. nifty detail: open trash folder, type "lsof " (note trailing space) into terminal window, drag file in question from trash into terminal; that'll put the filename there complete with path. after lsof finds it, one can then close the app.except it doesn't work in this case. lsof doesn't know about this file. something is b0rken.
force-quitting and relaunching the finder doesn't release the file either.
oh well.
rm -f [filename] to the rescue.that's very unixy though. i would like to know whether there's a more mac way of restoring order in trash land.
oh, and we now have over a foot of snow, and i don't want to drive anywhere, so the cats are getting canned food from the emergency reserves. i almost wish i hadn't whined about how it wasn't real good snow yesterday. :)
no subject
on 2006-11-28 02:30 (UTC)At any rate, I didn't know about the lsof thing and I'm saving this in my memories for the next time I can't delete a file.
unlocking file
on 2006-11-28 04:29 (UTC)but yeah, i tried unlocking the file, and it didn't help.
no subject
on 2006-11-28 04:08 (UTC)They essentially just package the sudo rm -rf ~/.Trash command into a happy Mac-like app package with an icon you can click, though.
trash force-cleaners
on 2006-11-30 13:26 (UTC)no subject
on 2006-11-28 17:56 (UTC)no subject
on 2006-11-30 05:09 (UTC)Though, when I went off looking for one, I found this, which looks to do the same sort of thing in a Windowsy way. And that certainly kicks summat wot needs kicking on my computer, so maybe that just means lsof can do kicking by proxy too. :)
process explorer
on 2006-11-30 13:24 (UTC)the only bad thing about PE is its footprint. at the time it ate a lot of power i needed otherwise.
[1] i hate, hate, hate forums. i participate in very few, but even so, that fragments my attention in too many places.