[Ilugc] [Tip] Show apps that use internet connection at the moment.

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Wed Nov 17 10:14:21 2010

Netstat is the correct way. There are other ways of course, lsof,
fstat and so on.

Even sockstat(1) on BSD systems.

But netstat is the canonical way.

lsof is meant for tracing system calls.

And which process has which device file open.

-Girish

On Tue, Nov 16, 2010 at 9:00 PM, Aanjhan R <aanjhan@xxxxxxxxx> wrote:

On Sun, Nov 14, 2010 at 7:09 PM, Tha.Suresh <jemenisuresh@xxxxxxxxx> wrote:
Show apps that use internet connection at the moment.

$ lsof -P -i -n

If just listing the apps is the goal this will help I think.

$ lsof | grep TCP | cut -f1 -d" " | uniq

--
A
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




-- 
Gayatri Hitech

http://gayatri-hitech.com
girish@xxxxxxxxxxxxxxxxxx

Other related posts: