Created
December 30, 2015 03:03
-
-
Save aantonw/09a5d2af210d6b02b9fc to your computer and use it in GitHub Desktop.
OS X lsof get listen ports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo lsof -iTCP -sTCP:LISTEN -P -n #tcp | |
| sudo lsof -iUDP -P -n | egrep -v '(127|::1)' #udp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment