Use netstat to See Internet Connections | Linux Journal
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sW0rXOoHpOsLaVoruRYi2tZ5BkFBFTQV9vwHcWHC2GRGXe7lpwwmvVL0i4PbE9UYQ8N0Ofxea99o8ODduLhUve6PJcMQgb8n3MXO3IigxKsXuLQRfyW5bD8mplgXSd82phxx6bGKAK_Ca2zw=s0-d)
$ netstat -tpe
The -t flag limits the output to show only TCP connections.
The -p flag displays the PID and name of the program making the connection.
The -e flag displays extra information, such as the user name under which each program is running.