How to determine what daemons are running and what port they are running on

Posted on 2011-10-14
Last Modified: 2012-05-12
From an Ubuntu command shell, how do you determine what network daemons (i.e. apache httpd daemon) are running on an Ubuntu system and moreso how to find out what port they are using?

I am using the ps command which does a great job listing the running daemons. My issue is trying to coorelate which daemons are network related and what ports they would be using.

Question by:haloexpertsexchange
    1 Comment
    LVL 35

    Accepted Solution


    sudo netstat -tulpn

    Open in new window

    You can obtain similar info via:
    sudo lsof -i -n | grep 'LISTEN'

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
    This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now