$ netstat -tpe
-t
limits the output to show only TCP connections
-p
displays the PID and name of the program making the connection
-e
displays extra information, such as the the user name under which each program is running
$ netstat -tpe
-t
limits the output to show only TCP connections
-p
displays the PID and name of the program making the connection
-e
displays extra information, such as the the user name under which each program is running