# Package manager installationsudoaptupdate&&sudoaptinstallnmap
# Alternative: Download from official sourcewgethttps://releases.nmap.com/latest/nmap-linux.tar.gz
tar-xzfnmap-linux.tar.gz
sudomvnmap/usr/local/bin/
# Kali Linuxsudoaptinstallnmap
# Using Homebrewbrewinstallnmap
# Using MacPortssudoportinstallnmap
# Manual installationcurl-Ohttps://releases.nmap.com/latest/nmap-macos.pkg
sudoinstaller-pkgnmap-macos.pkg-target/
# Using Chocolateychocoinstallnmap# Using Scoopscoopinstallnmap# Using wingetwingetinstallnmap# Manual download from official website# Visit https://nmap.com/download
# Script scan for vulnerabilitiesnmap--scriptvulntarget.com
# Comprehensive scannmap-A-T4target.com
# Save results to filenmap-oAscan_resultstarget.com