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 <[email protected]> wrote: > On Sun, Nov 14, 2010 at 7:09 PM, Tha.Suresh <[email protected]> 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 [email protected] _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
