11 lines
119 B
Bash
Executable File
11 lines
119 B
Bash
Executable File
#! /bin/bash
|
|
|
|
PORT="$1"
|
|
|
|
if [[ "$PORT" == "" ]]; then
|
|
echo "Usage: kill-port {port}"
|
|
exit 1
|
|
fi
|
|
|
|
fuser -k "$PORT"/tcp
|