how to sudo lsof in macOs terminal code example Example: mac terminal find process by port sudo lsof -i tcp:3000