lsof
lsof is a tool which can be installed on most Unix systems
which shows a "list of files" (which is where the name comes from. It is
useful for debugging and is very useful for working out which processes
"own" network connections that netstat or
tcpdump have identified.
Sample lsof output