Skip to content

Instantly share code, notes, and snippets.

@belukov
Last active August 3, 2016 14:30
Show Gist options
  • Select an option

  • Save belukov/7282ba639a3da78da70cdf381403ea67 to your computer and use it in GitHub Desktop.

Select an option

Save belukov/7282ba639a3da78da70cdf381403ea67 to your computer and use it in GitHub Desktop.
get pid by port
netstat -antp | grep :::9999 | sed 's/.* \([0-9][0-9]*\)\/node/\1/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment