Home > Linux > Linux Security: List Listening Ports

Linux Security: List Listening Ports

There are a few ways to list all ports open and to show which daemons are listening. Simply run one of the two commands:

# lsof -i | grep "(LISTEN)"

Example output

image

-or-

# netstat -tupan | grep "LISTEN"

I believe this to be a cleaner output
image

Categories: Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.