Skip to content

Instantly share code, notes, and snippets.

@mathieutu
Last active July 9, 2018 10:27
Show Gist options
  • Save mathieutu/43750ebf4cf36ef0a8a93d92f3687736 to your computer and use it in GitHub Desktop.
Save mathieutu/43750ebf4cf36ef0a8a93d92f3687736 to your computer and use it in GitHub Desktop.
Kill process on specified port.
kill -9 $(lsof -t -i:3000)
kill -9 `netstat -vanp tcp | grep 3000 | head -n 1 | awk '{ print $9 }'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment