Launch a comprehensive Nmap scan
~ $
nmap -n -Pn -sSU -pT:0-65535,U:0-65535 -v -A -oX results.xt 192.168.1.40
Description
The command launches a scan using Nmap which skips doing a ping (-Pn), does full port ranges for both TCP and UDP (-pT:0-65535,U:0-65535), runs all sorts of service detection (-A) and saves the results as XML in results.xml.