Complete Nmap keyboard shortcuts and commands reference — 15 shortcuts across 2 categories. Quick reference cheat sheet for Windows & Mac.
| Shortcut | Action |
|---|---|
| nmap <target> | Basic scan |
| nmap -sV <target> | Service version |
| nmap -O <target> | OS detection |
| nmap -A <target> | Aggressive scan |
| nmap -p 80,443 <target> | Specific ports |
| nmap -p- <target> | All ports |
| nmap -sU <target> | UDP scan |
| Shortcut | Action |
|---|---|
| nmap -sn 192.168.1.0/24 | Ping sweep |
| nmap --script vuln <target> | Vuln scan |
| nmap -T4 <target> | Fast timing |
| nmap -oN output.txt | Save output |
| nmap -oX output.xml | XML output |
| nmap -v <target> | Verbose |
| nmap -iL hosts.txt | Input from file |
| nmap --open <target> | Open ports only |
The most essential Nmap shortcuts are: nmap <target> (Basic scan), nmap -sV <target> (Service version), nmap -O <target> (OS detection).
The Nmap shortcut for basic scan is nmap <target>.
Yes — use My Stack to combine Nmap shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.
Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"