Created
June 30, 2020 13:36
-
-
Save Ic3fr0g/4c7b711d8dc28dadc8819586338b459b to your computer and use it in GitHub Desktop.
Kill processes
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
# Kill process by program-name | |
ps -ax | grep <program-name> | awk '{print $1}' | xargs kill | |
# Kill processes using port | |
lsof -i:<port> | awk 'NR!=1 {print $2}' | xargs kill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment