Skip to content

Instantly share code, notes, and snippets.

@magoon
Created October 20, 2017 17:51
Show Gist options
  • Save magoon/1232c85afff19d7a14668178098f249a to your computer and use it in GitHub Desktop.
Save magoon/1232c85afff19d7a14668178098f249a to your computer and use it in GitHub Desktop.
What's listening on port 80? Mac
sudo lsof -i TCP:80 | head -2 | tail -1 | awk '{print $2}' | xargs -I {} sh -c 'sudo ps auxw | grep {}' | grep -v grep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment