On Sun, Jun 20, 2010 at 6:32 PM, Stan Hoeppner <s...@hardwarefreak.com> wrote:
> Ron Johnson put forth on 6/20/2010 1:58 AM:
>
>> $ netstat -an | grep ^tcp\  | grep -v LISTEN | wc -l
>> 111
>
> You might get a more accurate count of BitTorrent connections with:
>
> netstat -an | grep ^tcp\  | grep ":"[6][8,9][0-9][0-9] | grep -c -v LISTEN

"netstat -atn" instead of "netstat -an | grep ^tcp\ "
:p

> Your command line merely shows all TCP connections that are in any state but
> LISTEN.  This should count only connections on TCP 6881-6999, either inbound
> or out.  AIUI, this is the port range used by the BitTorrent clients.
>
> --
> Stan


Tao
--
http://huangtao.me/
http://www.google.com/profiles/UniIsland


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktikjjlnx2ofdbypgosyesg9zm374pmhvqst-e...@mail.gmail.com

Reply via email to