Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Cannot empty trash because item is in use' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Cannot empty trash because item is in use
Authored by: Doc Drang on Jan 20, '11 11:17:08AM
A while ago I wrote a little script to tell me which process was holding onto a file and preventing me from emptying the Trash. It's not much, just 2 lines of bash, but it's been helpful.
#!/bin/bash
echo "Looking..."
lsof | grep Trash


[ Reply to This | # ]
Cannot empty trash because item is in use
Authored by: CHM on Jan 20, '11 11:37:47AM

That is quite useful, thanks.

Something interesting about that: After mailing an attachment, then trashing the document I had attached, I got the expected file in use error. So I tried the lsof | grep -i busy command you pointed out and came up with nothing. Very peculiar this mail attachment bug...



[ Reply to This | # ]