On 2003-06-04 13:17:56 -0500 "Sadanapalli, Pradeep Kumar (MED, TCS)" 
<Pradeep.Sadanapalli at med.ge.com> wrote:

> Hi,
> Is there any utility/command to know what services/daemons are 
> listening
> on what ports? say, I want to know which service is listening on port 
> 21 of my computer?
> Is there a way to know listening-ports and non-listening-ports? thanks
> for the help...


You can port scan the box. Then when you see a port open if you can't 
identify it you can use fuser

fuser -n tcp $PORTNUM

this will give u the PID of the process which can then be easily 
looked up with ps ax | grep $PID.


HTH

> 
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.real-time.com/mailman/listinfo/tclug-list
> 
> 


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list