Skip to content

Instantly share code, notes, and snippets.

@ellman
Last active January 4, 2016 06:19
Show Gist options
  • Save ellman/8581469 to your computer and use it in GitHub Desktop.
Save ellman/8581469 to your computer and use it in GitHub Desktop.
Get process and PID running on a port using netstat and lsof
#Ubuntu and OSX
lsof -i tcp:<PORT>
#Ubuntu
netstat -tulpn | grep --color :<PORT>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment