#list to be killed sudo lsof -i :5000 #kill all port 5000 apps sudo fuser -k 5000/udp kill $(cat main.pid) $(cat webserver.pid) $(cat zrok.pid)