#netstat -tulpn | less
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 1539/amavisd (maste
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1465/mysqld
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 1494/spamd.pid
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1562/pure-ftpd (SER
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1326/sshd
tcp 0 0 127.0.0.1:8891 0.0.0.0:* LISTEN 1323/opendkim
tcp 0 0 :::2030 :::* LISTEN 1551/cwpsrvd
tcp 0 0 :::2031 :::* LISTEN 1551/cwpsrvd
tcp 0 0 :::21 :::* LISTEN 1562/pure-ftpd (SER
tcp 0 0 :::22 :::* LISTEN 1326/sshd
udp 0 0 0.0.0.0:993 0.0.0.0:* 1163/portreserve
udp 0 0 0.0.0.0:995 0.0.0.0:* 1163/portreserve
udp 0 0 0.0.0.0:110 0.0.0.0:* 1163/portreserve
udp 0 0 0.0.0.0:143 0.0.0.0:* 1163/portreserve
udp 0 0 0.0.0.0:68 0.0.0.0:* 1088/dhclient