Thursday, April 2, 2009

Using netstat to List Internet Connections

Using netstat, you can monitor programs that are making connections to remote hosts:

$ netstat -tpe

-e, --extend
Display additional information. Use this option twice for maximum detail.

-p, --program
Show the PID and name of the program to which each socket belongs.

-t, --tcp
Limits the output to show only TCP connections

No comments:

Post a Comment