nmap is a free and open-source utility for scanning networks and hosts. It’s widely used for security assessments, troubleshooting, and inventory gathering. It can detect hosts, open ports, services, and more.
Use your package manager to install:
sudo apt install nmap # Debian / Ubuntu
sudo yum install nmap # CentOS / RHEL
sudo pacman -S nmap # Arch Linuxnmap 192.168.1.1nmap -sV 192.168.1.1sudo nmap -O 192.168.1.1nmap -sn 192.168.1.0/24sudo nmap -sU 192.168.1.1nmap -p 22,80,443 192.168.1.1
nmap -p 1-1000 192.168.1.1nmap --script http-enum 192.168.1.1nmap -oN report.txt 192.168.1.1
nmap -oX report.xml 192.168.1.1nmap is a versatile and essential tool for Linux administrators and security engineers. With its powerful scanning techniques, script integration, and detailed output, it facilitates network inventory, vulnerability detection, and systems analysis across environments.