Skip to content

Instantly share code, notes, and snippets.

@manniresystems
Created September 10, 2019 00:27
Show Gist options
  • Save manniresystems/1ccbfc206eb10970e384f6494622288e to your computer and use it in GitHub Desktop.
Save manniresystems/1ccbfc206eb10970e384f6494622288e to your computer and use it in GitHub Desktop.
Raspberry Pi Raspbian list open ports
netstat -lnt | grep LISTEN | awk '{ print ( $4 ) }' | awk 'BEGIN{FS=":"} { print $(NF) }' | sort -n | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment