find all processes running on a port macos code example Example: mac terminal find process by port sudo lsof -i tcp:3000