Skip to content

Instantly share code, notes, and snippets.

@n8rzz
Created October 23, 2021 16:03
Show Gist options
  • Save n8rzz/701494e5b2d1ea0cc88cdd4718e628b3 to your computer and use it in GitHub Desktop.
Save n8rzz/701494e5b2d1ea0cc88cdd4718e628b3 to your computer and use it in GitHub Desktop.
find-and-kill-a-process.sh
lsof -i tcp:PORT_NUMBER # list processes using PORT_NUMBER
kill -9 PID # kill process with pid PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment