Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I dunno when I deleted this file (its an avi), its been in the trash for awhile. Today I went to empty the trash and this one file can't claims to be in use. But I have restarted, shut down my mac several times, I've also used my media player several times since last using that file.

So I guess Im trying to find out how to find whats using the file or at least making it appear as such. So I can go about deleting it finally.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Something like lsof ~/.Trash/*.avi from Terminal should show you what has the file open. If necessary you could then use kill with the pid reported by lsof to force quit the program.

share|improve this answer
    
Might need a sudo there too. –  slhck Apr 22 '12 at 8:38

ls -laeO@ ~/.Trash/*.avi will show you information about other attributes that may be set on the file that may be keeping it from being deleted. There are different instructions for clearing different kinds of attributes depending on what's set, so if @geekosaur was wrong and nothing keeps re-opening that file after every reboot, update your Question with the output of that ls command and I can tell you want to do.

You may also be suffering from some sort of volume data or directory data corruption on your drive. Consider doing a "Repair Disk" and perhaps even a "Repair Disk Permissions" from Disk Utility.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.