Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get a list of programs that are currently connected to (and are receiving data) from the Internet?

Commands like iftop are good but does not show statistics based on process.

share|improve this question
How about sudo lsof -i -n -P? – mikewhatever Aug 4 '12 at 11:16
up vote 3 down vote accepted

If you just want to see apps that are using internet, use something like

lsof -P -i -n | cut -f 1 -d " "| uniq | tail -n +2

But, if you want to see the actual in/out rate for a certain app, use nethogs

share|improve this answer

The command

    netstat -ap

will display all TCP, UDP, and (local) Unix-domain sockets, their status, the addresses of the endpoints and the process that owns the socket. Run it as root to see process information for processes that are not owned by your user.

share|improve this answer
Nailed it. +1 was the least I could do to support your answer. – NlightNFotis Aug 4 '12 at 12:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.