Skip to content

Instantly share code, notes, and snippets.

@haohcraft
Created August 2, 2016 15:28
Show Gist options
  • Save haohcraft/4bcbf235ff8100afb5550b1c5da7a90f to your computer and use it in GitHub Desktop.
Save haohcraft/4bcbf235ff8100afb5550b1c5da7a90f to your computer and use it in GitHub Desktop.

To kill port

lsof -n -i4TCP:7000 | grep LISTEN | tr -s ' ' | cut -f 2 -d ' ' | xargs kill -9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment