Last active
October 12, 2017 10:50
-
-
Save NarHakobyan/96401c4533c05261601d9b9a5deec74e to your computer and use it in GitHub Desktop.
kill port of ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PNUMPER=$1; | |
kill -9 `lsof -w -n -i tcp:$PNUMPER| awk '{print $2}'|awk 'END{print}'`; | |
#killport {{PORT}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment