Skip to content

Instantly share code, notes, and snippets.

@Andrewpk
Created January 8, 2015 18:14
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 Andrewpk/0bbbcfdce9fe7537248e to your computer and use it in GitHub Desktop.
Save Andrewpk/0bbbcfdce9fe7537248e to your computer and use it in GitHub Desktop.
Ports being listened to on my machine
netstat -an | grep LISTEN | awk '{ print $4 }' | rev | cut -d: -f1 | rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment