lsof on Mac: Find and Kill the Process Using a Port
lsof lists open files, and on macOS “open file” includes network sockets — so it answers two questions people reach for it constantly: what’s using a port you need, and what’s quietly holding a file…






