netstat
Check listening ports
netstat -tunlp
Notes:
-ttcp-uudp-lonly listening ports-pShow the PID and name of the listener’s process
netstat -tunlp
Notes:
-t tcp-u udp-l only listening ports-p Show the PID and name of the listener’s process