Last active
September 11, 2018 17:13
-
-
Save jonluca/63b8669bb630737288b8341c22b64557 to your computer and use it in GitHub Desktop.
Bash/Zsh Kill Port
This file contains hidden or 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
kill_by_port(){ | |
lsof -i ":${1}" | awk 'NR > 1 {print $2}' | xargs kill -9 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment