Use the netstat command to see the open ports:
netstat -an | grep -w LISTEN
Once we have the list of open ports, determine what they are use for. To do this, check the /etc/services file. The command below is applicable on Ubuntu systems.
Back to first page