Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
You might want to check out the lsof command from Terminal. You can type in man lsof to see the details of the command. That's a lowercase L that the command starts with.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.