-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux nmap Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to nmap on Linux, covering Arch Linux, CachyOS, and other distributions including network scanning, port scanning, and security auditing.
Arch/CachyOS:
# Install nmap
sudo pacman -S nmapDebian/Ubuntu:
sudo apt install nmapFedora:
sudo dnf install nmapCheck nmap:
# Check version
nmap --version
# Check help
nmap --helpScan host:
# Scan single host
nmap 192.168.1.1
# Scan hostname
nmap example.comScan range:
# Scan IP range
nmap 192.168.1.1-254
# Scan subnet
nmap 192.168.1.0/24Scan common ports:
# Scan common ports
nmap -F 192.168.1.1
# Fast scan
nmap --top-ports 100 192.168.1.1Scan all ports:
# Scan all ports
nmap -p- 192.168.1.1
# Or
nmap -p 1-65535 192.168.1.1Scan specific:
# Scan specific ports
nmap -p 22,80,443 192.168.1.1
# Scan port range
nmap -p 20-100 192.168.1.1Detect services:
# Detect services
nmap -sV 192.168.1.1
# Version detection
nmap -sV -p 22,80 192.168.1.1Detect OS:
# OS detection
nmap -O 192.168.1.1
# Requires root
sudo nmap -O 192.168.1.1Stealth scanning:
# SYN scan (stealth)
sudo nmap -sS 192.168.1.1
# TCP scan
sudo nmap -sT 192.168.1.1Comprehensive scan:
# Aggressive scan
sudo nmap -A 192.168.1.1
# Includes OS, version, scriptsUse sudo:
# Some scans require root
sudo nmap -sS 192.168.1.1
# Or use TCP scan
nmap -sT 192.168.1.1This guide covered nmap installation, network scanning, and port scanning for Arch Linux, CachyOS, and other distributions.
- Network Utilities - Network tools
- SSH Configuration - SSH setup
- Security Configuration - Security
- nmap: https://nmap.org/
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.