Check the Applications that use internet connection at this moment (Linux)

by kannan4k

Hi Guys
If you are working with low bandwidth internet connection,your data usage may be wasted by desktop applications other than
you the browser.
To know about that type this command in terminal

$ lsof -P -i -n

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gwibber-s 1910 kannan 9r IPv4 11424 0t0 TCP 127.0.0.1:51536->127.0.0.1:53444 (CLOSE_WAIT)
gwibber-s 1910 kannan 11r IPv4 11447 0t0 TCP 127.0.0.1:51540->127.0.0.1:53444 (CLOSE_WAIT)
gwibber-s 1910 kannan 14u IPv4 11481 0t0 TCP 127.0.0.1:51548->127.0.0.1:53444 (CLOSE_WAIT)
gwibber-s 1910 kannan 15u IPv4 11480 0t0 TCP 127.0.0.1:51547->127.0.0.1:53444 (ESTABLISHED)
gwibber-s 1910 kannan 16r IPv4 11498 0t0 TCP 127.0.0.1:51551->127.0.0.1:53444 (CLOSE_WAIT)

Above command give the lot of details.

Simply to get the application name,give the following command

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

beam.smp
desktopco
firefox-b
chrome

If you are working in the Public Wifi or Ethernet connection,Dont worry about the data usage,Forgot this post.

Advertisement