What does the -oA option do in an Nmap command?

Prepare for the Nmap and ZenMap Tests. Access flashcards and multiple choice questions, with hints and explanations for each question. Ensure success in your exam!

Multiple Choice

What does the -oA option do in an Nmap command?

Explanation:
The option -oA saves the scan results in all supported output formats at once using a common base filename. This is useful because you get multiple formats from a single run: a human-friendly normal file, an XML file for structured data, and a grepable file for quick text parsing, all sharing the same prefix. For example, using a base name like myscan will produce myscan.nmap, myscan.xml, and myscan.gnmap. It’s effectively a shorthand for running the separate output options (-oN, -oX, and -oG) together. This isn’t about disabling output, nor about saving only normal format, and it isn’t specifically about JSON.

The option -oA saves the scan results in all supported output formats at once using a common base filename. This is useful because you get multiple formats from a single run: a human-friendly normal file, an XML file for structured data, and a grepable file for quick text parsing, all sharing the same prefix. For example, using a base name like myscan will produce myscan.nmap, myscan.xml, and myscan.gnmap. It’s effectively a shorthand for running the separate output options (-oN, -oX, and -oG) together. This isn’t about disabling output, nor about saving only normal format, and it isn’t specifically about JSON.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy