mac kill process on port one line code example Example: mac terminal find process by port sudo lsof -i tcp:3000