[NCSA-discuss] windows cleanup following gratuitous download

Joshua Baker-LePain jlb17 at duke.edu
Tue Oct 10 09:45:13 EDT 2006


On Tue, 10 Oct 2006 at 9:42am, Rob McCauley wrote

> On 10/10/06, Joseph Mack NA3T <jmack at wm7d.net> wrote:
>> Finding which process is
>> opening a network connection isn't easy in Linux (I can't
>> think of how to do it right now).
>
> lsof and fuser both do it.
>
> Examples:
>
> lsof -i TCP:22
> fuser 22/tcp
>
> The latter is more specific--who has 22/tcp open on this box.  The
> former will include processes connected to 22/tcp elsewhere.

And there's also 'netstat -p'.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University


More information about the ncsa-discussion mailing list