[rescue] Finding out owner of the socket port

Paul Sladen rescue at sunhelp.org
Fri Sep 21 09:22:29 CDT 2001


On Thu, 20 Sep 2001, Guess wrote:

> Hello list,

Hello, who are you?... I couldn't guess.

> Is there a command to find out which process is
> holding up a socket port ? netstat -a only tell which
> port is being used but I need to know which process is
> using it.

lsof  (LiSt Open Files)   if you have it to hand, otherwise IIRC it's a
GNUism which can be got from all the usual places.

Debian users should type:

  % apt-get install lsof

Job done!
Paul





More information about the rescue mailing list