Skip to content

Instantly share code, notes, and snippets.

@omarjcero
Created November 26, 2021 15:01
Show Gist options
  • Save omarjcero/71da1defee0d863f9c75f282a2858f76 to your computer and use it in GitHub Desktop.
Save omarjcero/71da1defee0d863f9c75f282a2858f76 to your computer and use it in GitHub Desktop.
Linux command to find what running PID is using an specific port
$ netstat -nlp | grep :12159
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 9 0 0.0.0.0:12159 0.0.0.0:* LISTEN 73809/python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment