nmap(1) -sV -sC -oN nmap.log
Network exploration tool and security / port scanner
-sV (Version detection) .
    Enables version detection, as discussed above. Alternatively, you can use -A, which enables version
    detection among other things.
-sC .
    Performs a script scan using the default set of scripts. It is equivalent to --script=default. Some
    of the scripts in this category are considered intrusive and should not be run against a target
    network without permission.
-oN filespec (normal output) .
    Requests that normal output be directed to the given filename. As discussed above, this differs
    slightly from interactive output.
nmap [Scan Type...] [Options] {target specification}
source manpages: nmap