Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save petergi/9af69a415ef64b51d7bf449bb75b51ad to your computer and use it in GitHub Desktop.
Save petergi/9af69a415ef64b51d7bf449bb75b51ad to your computer and use it in GitHub Desktop.
Kill whichever process is running on the given port
# Kill the process running on a port
lsof -t -t:port 1 xargs kill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment