Skip to content

Instantly share code, notes, and snippets.

@MatrixFrog
Created January 28, 2026 23:28
Show Gist options
  • Select an option

  • Save MatrixFrog/af81e4f14e61ba03cca226a2bbb8b7bc to your computer and use it in GitHub Desktop.

Select an option

Save MatrixFrog/af81e4f14e61ba03cca226a2bbb8b7bc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
PORT_NUMBER=$1
kill -9 $(lsof -t -i:${PORT_NUMBER})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment