Created
December 29, 2022 07:13
-
-
Save markojerkic/eec0ae50ee74107b37d36bc825349d20 to your computer and use it in GitHub Desktop.
Kill PIDs listening on TCP or UDP ports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for port in $@; do | |
fuser -kn tcp $port | |
fuser -kn udp $port | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment