Skip to content

Instantly share code, notes, and snippets.

@mrinalwadhwa
Created August 3, 2016 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrinalwadhwa/2d1bb34e6ec4af165c4d69ec35c67e4c to your computer and use it in GitHub Desktop.
Save mrinalwadhwa/2d1bb34e6ec4af165c4d69ec35c67e4c to your computer and use it in GitHub Desktop.
Listening TCP ports
#!/usr/bin/env bash
sudo lsof -i -P | grep -i "listen"
# REFERENCES
# http://apple.stackexchange.com/a/117648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment