How to scan for open port with nmap

1 min read

  1. Install nmap
# Debian/Ubuntu
sudo apt-get install nmap
# Arch
sudo pacman -S nmap
# RHEL/CentOS/Fedora
sudo dnf install nmap
  1. Scan for open port
nmap -p <port> -sC <ip>