Discover which services are running locally
sudo netstat -plunt
The association between ports and services are listed in this file
/usr/share/nmap/nmap-services
Scan a specific port
sudo nmap -p 80 scanme.nmap.org
Scan a single host
nmap x.x.x.x