Last active
November 29, 2017 14:16
-
-
Save svassr/7b5c770ae4c22906416456ca82b48552 to your computer and use it in GitHub Desktop.
Handy bash command
This file contains 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
# find and kill a specfic process | |
kill $(ps aux | grep '[p]ython csp_build.py' | awk '{print $2}') | |
# find and kill process running on a specific port | |
# aleternativeley you could consider using "sudo netstat -nlp | grep :80" | |
kill $(sudo lsof -i :80 | grep LISTEN | awk '{print $2}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment