Skip to content

Instantly share code, notes, and snippets.

@srt32
Created March 5, 2019 20:36
Show Gist options
  • Save srt32/ad0e896b61351c19a9e449642dc7cc74 to your computer and use it in GitHub Desktop.
Save srt32/ad0e896b61351c19a9e449642dc7cc74 to your computer and use it in GitHub Desktop.
kill processes running on a port
lsof -i :4327 | awk '{ print $2 }' | tail -n+2 | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment