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