# netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 786/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 19450/cupsd
tcp 1 65 192.168.1.100:52798 173.194.43.3:443 CLOSING -
tcp 1 65 192.168.1.100:44886 74.125.131.191:443 CLOSING -
tcp 0 0 192.168.1.100:49985 74.125.226.201:443 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:43419 173.194.43.22:443 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:58352 74.125.226.207:80 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:50740 173.194.43.44:80 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:33700 173.194.43.34:80 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:54980 173.194.43.47:80 TIME_WAIT -
tcp 0 0 192.168.1.100:60045 173.194.43.14:443 ESTABLISHED 1598/firefox
tcp 1 65 192.168.1.100:41279 173.194.32.15:443 CLOSING -
tcp 0 0 192.168.1.100:45569 74.125.226.205:443 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:33902 173.194.73.191:80 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:41559 173.194.43.58:80 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:54972 173.194.43.47:80 TIME_WAIT -
tcp 0 0 192.168.1.100:36286 74.125.226.207:443 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:47506 74.125.226.205:80 ESTABLISHED 1598/firefox
tcp 0 0 192.168.1.100:47507 74.125.226.205:80 ESTABLISHED 1598/firefox
tcp6 0 0 :::22 :::* LISTEN 786/sshd
# ps -fp 1598
UID PID PPID C STIME TTY TIME CMD
dennis 1598 1 23 06:15 ? 00:08:53 /usr/lib/firefox/firefox