kp () { if [ -z "$1" ] then echo "Usage: kp <port>" return 1 fi lsof -nP -iTCP:"$1" -sTCP:LISTEN | awk 'NR>1 {print $2}' | xargs kill -9 }