Who has port X open?

John Chambers jc at trillian.mit.edu
Thu Apr 12 09:12:06 EDT 2001


Charles C. Bennett writes:
|
| > How can I tell what program has port X opoen?
|
| netstat -ap


: netstat -ap
netstat: illegal option -- p
usage: netstat [-veenNcCF] [<Af>] -r         netstat {-V|--version|-h|--help}
       netstat [-vnNcaeo] [<Socket>]
       netstat { [-veenNac] -i | [-vnNc] -L | [-cnNe] -M }
...


This is on a fairly new valinux box.  I think the system is
really a redhat something, though I'm not too clear on just
how one determines this.  "uname -r" says "2.2.13-0.7".  Is
the p option something that was just added to netstat?

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list