Open and closed ports

To check the listening ports:
netstat -ntlp | grep LISTEN

To check the specific port. An example:
sudo netstat -ntlp | grep :22

http://lubuntuhowto.blogspot.fi/2015/05/how-to-scan-port-on-local-computer-lubuntu.html

To control starting services install sysv-rc-conf
sudo apt-get install sysv-rc-conf

To edit services
sudo sysv-rc-conf

http://unix.stackexchange.com/questions/74722/how-to-close-open-ports

To see all ports

sudo netstat -antplF