- To: Hasnain <mhasnain@xxxxxxxxx>
- Subject: Re: [SLUG] which process holding port
- From: "David P" <davidrox@xxxxxxxxx>
- Date: Mon, 17 Mar 2008 20:17:20 +1100
- Cc: slug@xxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uGKUkRhclHrF5L/yQU0j8qyXzbLp2m6EtquoAasf1Hc=; b=IUp/rYstWmZvbVcQ7Jl3YbqFqRbvHhwJcQWr/lHBerCWJVxoULnxlKqWVepULt9ZYh9NLukxNkniSEQ81FyG0W4LIw0kQTA8KpFHcpxTRAkaY/FBxi3V6fma+5HUWRjG19wvFJc9EJfKbaRfBL8H7gdXQG+jAw+21sjP/yJK4FI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Cx747yE9gPYVry6NB+E9U8pTJBNa7xqip7f76LuIQndMZq9EXZiySIASkldzN2+R3NOcwEw20rI5ye6bvPenNhi+CbYIpt/7wZg/h/Mguk4O/6kH6Uirtirlb7BFTh1533arAmVFNc78D2D/yYZeajAf1x4atsr1zu2QbitjVvo=
Try netstat's "-p" option.
David
On Mon, Mar 17, 2008 at 7:58 PM, Hasnain <mhasnain@xxxxxxxxx> wrote:
> Hi Everyone,
>
> Is there anyway how to find which process is holding a tcp port in linux?
> Say for instance, i checked
>
> netstat -a |grep ###. but i dont know which process has opened or hold that
> port currently. Is there anyway to find out this?
>
>
> Thanks in advance,
>
> Hasnain
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>