List open ports on a machine

Linux
Networking
Author

Vinh Nguyen

Published

November 2, 2010

## 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