1$ sudo netstat -plnt
2Active Internet connections (only servers)
3Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
4tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3686/mysqld
5tcp 0 0 :::443 :::* LISTEN 2218/httpd
6tcp 0 0 :::80 :::* LISTEN 2218/httpd
7tcp 0 0 :::22 :::* LISTEN 1051/sshd
8