Skip to content

Instantly share code, notes, and snippets.

@anthonycarminati
Created September 20, 2016 14:14
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 anthonycarminati/e6abdb6df6f341c165e40a9f7d1bd2ef to your computer and use it in GitHub Desktop.
Save anthonycarminati/e6abdb6df6f341c165e40a9f7d1bd2ef to your computer and use it in GitHub Desktop.
Kill a process running on a specific port
lsof -i :<place_port_here> |awk '{print $2}'|sort -u |grep -v PID |xargs kill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment