Skip to content

Instantly share code, notes, and snippets.

@jcollum
Created June 7, 2019 16:36
Show Gist options
  • Save jcollum/ab8ebd854b844a4dd10bc3ebaf41c90d to your computer and use it in GitHub Desktop.
Save jcollum/ab8ebd854b844a4dd10bc3ebaf41c90d to your computer and use it in GitHub Desktop.
find by port, cross platform
port=3001
kill $(netstat -tuwanp | grep $port | awk '{print $7}' | cut -d "/" -f 1 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment