Last active
November 18, 2021 14:04
-
-
Save Tharlys10/e411fc52a6e6d5bb4cf84ce56007540f to your computer and use it in GitHub Desktop.
Drop process in port
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
# List of process in port | |
sudo lsof -t -i:port_number | |
# Execute command kill | |
sudo kill -9 $(sudo lsof -t -i:port_number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment