how to stop port from listening linux code example Example: kill port linux kill -9 $(lsof -t -i:8080)