-
-
Save helpermethod/0725bca77706975bce201e3662c5fc6d to your computer and use it in GitHub Desktop.
Delete a process by port number
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
pk() { | |
lsof -i :"$1" -s TCP:LISTEN -t | xargs kill | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment