Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

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

2 Answers 2

up vote 3 down vote accepted

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

Upd

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

 
discard

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.