What options to netstat will tell me what protocols are listening on what ports?

cpghost cpghost at cordula.ws
Fri Dec 22 14:49:39 PST 2006


On Fri, Dec 22, 2006 at 12:04:07PM -0700, Andrew Falanga wrote:
> In Linux, I would normally use 'netstat -tl' to see a listing of all
> listening ports on the tcp protocol; however I'm not having as much luck in
> determining what options I need for netstat in FreeBSD.  What are the
> options that I need to use?
> 
> Andy

How about sockstat(1) with the 'l'isten option?

% sockstat -46l | grep tcp

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/


More information about the freebsd-questions mailing list