Newb question

For me, nmap -n -v -Pn -p- -A --reason x.x.x.x works. nmap tries its best to detect the OS based on at least one open port and one close port. I’d say nmap is 90% correct on the OS.