[SunHELP] Find out which program is listening on a port

sunhelp at sunhelp.org sunhelp at sunhelp.org
Wed May 16 07:50:14 CDT 2001



just comparing lsof and netstat ....

lsof requires root permission whereas netstat can be run by any user. lsof
uses kvm_open which needs to open /dev/kvm for which root permission is
required.




Dicu Silviu <linuxsil at yahoo.com> on 05/16/2001 06:21:09 PM

Please respond to sunhelp at sunhelp.org

To:   sunhelp at sunhelp.org
cc:    (bcc: Munish Kumar/HSS)

Subject:  Re: [SunHELP] Find out which program is listening on a port




I don't think is a native command for that.
The way I do it is I installed lsof from
sunfreeware.com and do

lsof -i -T |more

then you can see all the ports that are open and what
is running.


--- Martijn de Munnik <M.H.M.deMunnik at phys.uu.nl>
wrote:
> How can I find out what program is listening on a
> port, I use netstat -a
> to see which ports are open and I want to know which
> program is listening
> on some ports...
>
> with regards
> Martijn de Munnik
>
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp


=====
Silviu Dicu

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp









More information about the SunHELP mailing list