Skip to content

Instantly share code, notes, and snippets.

@thomaswilley
Last active July 9, 2016 19:52
Show Gist options
  • Save thomaswilley/eb0fa441438f52ccbba5fcb9339e0bab to your computer and use it in GitHub Desktop.
Save thomaswilley/eb0fa441438f52ccbba5fcb9339e0bab to your computer and use it in GitHub Desktop.
Quick incantation to see all the processes using ports/internet (add specific port after -i, e.g., -i :443, to limit results to just that port), sudo it to see fuller list, pipe into grep LISTEN plus sudo to see local servers
lsof -i +c 0 | awk '{ print $1 }' | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment