Netstat
Show listening TCP connections:
netstat --listening --tcp
Show programs associated to listening TCP and UDP connections (root privilege needed):
netstat --listening --tcp --udp --program
Show listening TCP connections:
netstat --listening --tcp
Show programs associated to listening TCP and UDP connections (root privilege needed):
netstat --listening --tcp --udp --program