#! /bin/bash PORT="$1" if [[ "$PORT" == "" ]]; then echo "Usage: kill-port {port}" exit 1 fi fuser -k "$PORT"/tcp