Kill a file hog in Snow Leopard
April 2nd, 2010You tried to empty the trash. Finder says you can’t. “The operation can’t be completed because the item” is in use. The question is who is that hog and why is it bogging your trash down.
Relax. Open the terminal and use lsof. It will produce a long list of processes and the files they are using. So, do a little grep filter by citing a word from the file that refuses to be deleted:
lsof | grep somewordromyourfile
Once you find the offending proc, just kill it off.





