Skip to content

Instantly share code, notes, and snippets.

@ramesaliyev
Created August 25, 2018 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramesaliyev/d12be7e6fee62a323a87c3a6136b79de to your computer and use it in GitHub Desktop.
Save ramesaliyev/d12be7e6fee62a323a87c3a6136b79de to your computer and use it in GitHub Desktop.
Kill process listening on port
# Simply Add this into your .bashrc or .zshrc or something.
# Reload bash and then;
# kilp 7070
function kilp() {
kill -9 $(lsof -ti tcp:$1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment