Nmap Commands Tutorial For Every Linux User

Written by itsubuntu

Insight: Nmap Commands Tutorial For Every Linux Users

Let’s have a quick look into the list of Nmap commands tutorial for every Linux user.

Nmap Commands Tutorial For Every Linux User

Scan a Single Host

nmap or hostname

Scan Multiple Hosts

nmap hostname1 hostname2 hostname3


Scan Range of IP Addresses


Scan an entire subnet, use the below command.


Remote OS detection

nmap -A
nmap -A -v

Get Firewall Information of Hosts

nmap -sA
nmap -v -sA

Hosts protected by external firewalls

nmap -PN hostname
nmap -PN

Scan IPv6 Hosts

nmap -6 hostname
nmap --6 2001:0db8:85a3:0000:0000:8a2e:0370:7334

List Hosts without Port Scanning

sudo nmap -sn

Display Open Ports Only

nmap --open

Scan Hosts Using TCP SYN

sudo nmap -PS20-25,80,110,443

Scan Using IP Protocols

nmap -v -sO


About the author


Subscribe To Our Newsletter

Subscribe To Our Newsletter

Dear lovely people, Welcome to

Join our mailing list to receive the freebies, tutorials, latest news and updates from our team.

You have Successfully Subscribed!