Skip to content

Instantly share code, notes, and snippets.

@mLuby
Created September 2, 2016 21:02
Show Gist options
  • Save mLuby/97b0b6980eb80f940bb552e0ac8c92bd to your computer and use it in GitHub Desktop.
Save mLuby/97b0b6980eb80f940bb552e0ac8c92bd to your computer and use it in GitHub Desktop.
kill processes running on a port
test $(uname) == "Darwin" && lsof -t -i tcp:9001 | xargs kill
test $(uname) == "Linux" && fuser -k 9001/tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment