How to kill the processes accessing Internet in background using terminal commands. Command to stop (disconnect) the processes accessing Internet. Command to kill the process accessing Internet.

link|improve this question

60% accept rate
kill -9 'name_of_program_using_internet' – Nicholi Jul 28 '11 at 0:43
@Nicholi : But how to find processes accessing internet ? – JOHN Jul 28 '11 at 0:50
2  
kill -15 is preferable, since programs designed to respond to the 15 argument will clean up before ending. – myopic.bones Jul 28 '11 at 0:59
feedback

1 Answer

up vote 2 down vote accepted

To find any processes making/listening for internet connections

lsof -i 

and use kill with the PID you find.

link|improve this answer
thanks. is working – JOHN Jul 28 '11 at 3:21
feedback

Your Answer

 
or
required, but never shown

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