Here are some NMAP commands I use often.
nmap -sP -oA hostlist.active 192.168.1.0/24,172.16.20.0/24
This does a PING sweep in order.
-R makes it do a reverse DNS lookup for every address, whether a host is up or not.
nmap -sS -T4 -vv -r -sV -O -n -F -oA test208 208.22.79.*
-F makes it faster by skipping most of the default ports.
-r makes it scan the ports in order.
-sV detects service versions.
-O detects OS versions.
nmap -sS -PN -T4 -oA echochargentest -p T:7,19 -v -r 172.16.20,21,22,5,6,7,16.*
nmap -sS -PN -T4 -oA testsmallservices -p T:7,9,13,17,19,U:7,9,13,17,19 -v -r 192.168.1.*
-PN tells it not to PING first, just check for the open ports.
nmap -PN -sT -A -p T:80,443,8080,8888,8088 -oA webapps -T4 192.168.1,2.*
nmap -sS -sV -PN -T4 -oA testsmtp -p T:25 -v -r 192.168.1.*
nmap -sU -sV -PN -T4 -oA tftptest -p U:69 -v -r 192.168.1.*
nmap -sSU -sV -PN -T4 -oA tftptest -p T:25,U:69 -v -r 192.168.1.*
-sS does a SYN scan; -sU does a UDP scan.
-sV does version detection.