Created
August 25, 2018 07:24
-
-
Save ramesaliyev/d12be7e6fee62a323a87c3a6136b79de to your computer and use it in GitHub Desktop.
Kill process listening on port
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
# 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