Lsof is a Unix-specific 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 the single most powerful utility for inspecting running processes and determining which process is listening to which ports.
d60225fa124cdd5e89f69db74cb7a17ebebd9b8d0ebcca6988944be43f78512c