On 22/01/2011 01:23, Terrence Koeman wrote:
> Might also want to try 'lsof -nPi |grep LISTEN', that shows what
> process is listening as well. Maybe not really added value here, but
> it sure helps when you're troubleshooting address/port in use errors
> and such.

sockstat(1) does this job and it is part of the base system.  To show
listening IPv4 and IPv6 network sockets:

    sockstat -4 -6 -l

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matt...@infracaninophile.co.uk               Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to