lsof

What process use TCP port

lsof -i TCP:13207

What process is using a directory

lsof /path/to/dir

What files a process has open

lsof -p 890