Skip to content

Instantly share code, notes, and snippets.

@NarHakobyan
Last active October 12, 2017 10:50
Show Gist options
  • Save NarHakobyan/96401c4533c05261601d9b9a5deec74e to your computer and use it in GitHub Desktop.
Save NarHakobyan/96401c4533c05261601d9b9a5deec74e to your computer and use it in GitHub Desktop.
kill port of ubuntu
#!/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