Skip to content

Instantly share code, notes, and snippets.

@dszakallas
Created October 7, 2016 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dszakallas/fa4ffc0885494fa8a1f6896aa22c34c7 to your computer and use it in GitHub Desktop.
Save dszakallas/fa4ffc0885494fa8a1f6896aa22c34c7 to your computer and use it in GitHub Desktop.
util
#/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