netstat -pnaltu
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 983/sshd
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 1170/perl
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1094/nginx: master