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

My installed OS is Ubuntu 12.10, 64 bit, English, kernel version

Which commands must I issue at the terminal window to find out the names of programs that connect to the internet immediately after Ubuntu boots up?

share|improve this question
up vote 4 down vote accepted

sudo netstat --inet -p will show current active or listening connections with names of programs.


To view connections with LISTENING state netstat must be invoked with additional -a option: sudo netstat --inet -pa

share|improve this answer
@ ASten: Thanks for your reply. I shall try it and report back if there are problems. – n00b Dec 28 '12 at 10:26

NetHogs is a handy little tool which shows you what processes are utilizing your bandwidth. You can startup this application immediately after reboot and you would know which programs are connecting to the internet at startup.

Step 1 : Install NetHogs with the following command:

sudo apt-get install nethogs

Step 2 : Once installed, you may run nethogs with the following command:

sudo nethogs <interface>

replace <interface> with eth0, wlan0, ppp0 depending on what you use to connect to the internet. If you are not sure, then run ifconfig to know what are the available options for you.

You may quit the program by pressing Ctrl + C.

share|improve this answer
@ Aditya: Thanks for your reply. How do I install it? Detailed instructions are welcome as I am new to Linux and Ubuntu. Othen than installing NetHogs, can we verify which programs connect to the internet at startup using one of Ubuntu's native tools? (I am rather averse to installing software that is not part of Ubuntu's official repository.) – n00b Dec 28 '12 at 10:25
@ Aditya: Thanks for taking the time to give me a detailed reply. – n00b Dec 28 '12 at 11:02

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.