Skip to content

Instantly share code, notes, and snippets.

@mrwanashraf
Created August 13, 2019 09:14
Show Gist options
  • Select an option

  • Save mrwanashraf/1fcf985acaa5b8aae955cb3b0f731a2f to your computer and use it in GitHub Desktop.

Select an option

Save mrwanashraf/1fcf985acaa5b8aae955cb3b0f731a2f to your computer and use it in GitHub Desktop.

Revisions

  1. mrwanashraf created this gist Aug 13, 2019.
    10 changes: 10 additions & 0 deletions kill-ports.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/bash

    # 💡 Search for busy ports
    netstat -lnp

    # ✋ kill a specific port
    fuser -k portNumber/tcp

    # 💡 example
    fuser -k 8080/tcp