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 Linux
nmap 192.168.1.1
nmap -sV 192.168.1.1
sudo nmap -O 192.168.1.1
nmap -sn 192.168.1.0/24
sudo nmap -sU 192.168.1.1
nmap -p 22,80,443 192.168.1.1
nmap -p 1-1000 192.168.1.1
nmap --script http-enum 192.168.1.1
nmap -oN report.txt 192.168.1.1
nmap -oX report.xml 192.168.1.1
nmap
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.