:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 2646/dovecot
tcp 0 0 0.0.0.0:7171 0.0.0.0:* LISTEN 2764/theforgottense
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 2646/dovecot
tcp 0 0 0.0.0.0:7172 0.0.0.0:* LISTEN 2764/theforgottense
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2459/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 2615/master
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2646/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 2646/dovecot
tcp 0 0 127.0.0.1:687 0.0.0.0:* LISTEN 2631/famd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2263/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2710/apache2
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 2615/master
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2627/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2380/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2615/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 2710/apache2
udp 0 0 0.0.0.0:111 0.0.0.0:* 2263/portmap