Skip to content

Instantly share code, notes, and snippets.

@Tharlys10
Last active November 18, 2021 14:04
Show Gist options
  • Save Tharlys10/e411fc52a6e6d5bb4cf84ce56007540f to your computer and use it in GitHub Desktop.
Save Tharlys10/e411fc52a6e6d5bb4cf84ce56007540f to your computer and use it in GitHub Desktop.
Drop process in port
# 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