Lsof is an extremely powerful unix diagnostic tool. Its name stands for LiSt Open Files, and it does just that. It lists information about any files that are open by processes currently running on the system. It is useful for pinpointing which process is using each network socket. FAQ available here.
c543b3aba8c988881344cd18b93be0e95beafd1ce83c183677d0901bfbd90f92