Created
October 7, 2016 12:49
-
-
Save dszakallas/fa4ffc0885494fa8a1f6896aa22c34c7 to your computer and use it in GitHub Desktop.
util
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
#/usr/bin/env sh | |
function killport() { | |
lsof -i :$1 | tail -n 1 | awk '{ printf $2 }' | xargs kill -9 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment