Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created April 21, 2010 17:24
Show Gist options
  • Save defunkt/374130 to your computer and use it in GitHub Desktop.
Save defunkt/374130 to your computer and use it in GitHub Desktop.
List what ports are in use on OS X
# List what ports are in use on OS X
sudo lsof -iTCP -sTCP:LISTEN -P
@nevans
Copy link

nevans commented Apr 23, 2010

I've long been a fan of sudo netstat -tunlp, but I don't know if all of those options are cross-platform or Linux only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment