bin: add kill-port script

This commit is contained in:
2023-01-19 22:29:05 +03:00
parent 5f6a7a0c61
commit b15e3c5abc

10
bin/kill-port Executable file
View File

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