#!/bin/bash lsof -nP -iTCP -sTCP:LISTEN | awk 'NR>1{print $2}' | while read -r PID; do kill -9 "$PID" || true; done