List open ports on a machine
Linux
Networking
## http://www.linuxforums.org/forum/slackware-linux/17261-open-ports.html
## need nmap
sudo apt-get install nmap
## list open ports and the corresponding services
nmap localhost
## udp
sudo nmap -sU localhost