Learn how to install Nmap on Kali Linux and perform basic network scans. In this beginner-friendly cybersecurity tutorial, you'll discover how to scan hosts, detect services, identify operating systems, and save scan results using Nmap.
📌 Commands Used in This Video
Check Nmap Version
nmap --version
Update Kali Linux Package Repository
sudo apt update
Install Nmap
sudo apt install nmap -y
Scan a Single Host
nmap 192.168.1.1
Scan an Entire Subnet
nmap 192.168.1.0/24
Host Discovery (Ping Scan)
nmap -sn 192.168.1.0/24
Service Version Detection
nmap -sV 192.168.1.1
Operating System Detection
sudo nmap -O 192.168.1.1
Aggressive Scan
sudo nmap -A 192.168.1.1
Scan Specific Ports
nmap -p 80,443 192.168.1.1
Scan All TCP Ports
nmap p 192.168.1.1
Save Results to a Text File
nmap -oN scan.txt 192.168.1.1
Save Results to XML Format
nmap -oX scan.xml 192.168.1.1
Save Results in All Formats
nmap -oA scan 192.168.1.1