best way to scan?

view story

http://www.unix.com – i want to scan all open and closed ports on a server. how can i do this. i intend on using nmap, but if there are better ways to do it, please let me know. i understand there are a total of 6335 allowable ports on a server. so out of that 6335, i want to know which is open or closed. id like to do which is udp or tcp. i was hoping the more experienced users here can help build on this: Code: nmap -p U:1-6335,T:1-6335 host.skysmart.net (HowTos)