Show open ports and what program is using them

netstat -lptn

Alternatively you can use:

netstat --tcp --listening --programs --numeric

Common uses

  • See what ports are open on your system
  • See what processes the open ports belong to
  • Security audits to find unused software

Leave a Reply

Your email address will not be published. Required fields are marked *

Markdown is allowed in comments.