Skip to content

Instantly share code, notes, and snippets.

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 zoldaten/ca10371e7cf6082a31b10d3415db371e to your computer and use it in GitHub Desktop.
Save zoldaten/ca10371e7cf6082a31b10d3415db371e 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