Vox wrote on Wed, Mar 05, 2003 at 06:45:03PM -0600 :
> 
> > Did I mention simple?
> 
>   uhm...nothing is simpler than:
>   netstat -ntpl
>   It'll give you a list of ports that are open in LISTEN or CONNECTED
>   state, and what program is keeping the port open...what simpler do
>   you want?

I think he just wanted someone to tell him what to do.  Here's some
expansion on the suggestions of others.  I suggest the original author
'man netstat' so he doesn't have to get indignant when the good answers
he got were not what he expected.

netstat -ltnp (Listening TCP, no resolving, program listening)
netstat -lunp (Listening UDP, no resolving, program listening)

netstat -ltunp (you get one guess, except Vincent Danen gets 3 ;)

Blue skies...                   Todd
-- 
 Todd Lyons -- MandrakeSoft, Inc.   http://www.mandrakesoft.com/
 Favourite shell:  bash, though I also like 'init=/usr/bin/emacs'
                                                --Andrew Tridgell
      Mandrake Cooker Devel Version, Kernel 2.4.21-0.11mdk

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to