What is nmap basics in Linux?

Nmap (Network Mapper) is a powerful open-source tool used for network discovery and security auditing. It allows system administrators to identify hosts and services on a computer network, thus creating a "map" of the network. Nmap is widely used for tasks such as network inventorying, managing service upgrades, and monitoring host or service uptime.

Basic Nmap Commands

Here are some basic commands that you can use with Nmap:

  • Scan a single IP: nmap 192.168.1.1
  • Scan a range of IPs: nmap 192.168.1.1-100
  • Scan an entire subnet: nmap 192.168.1.0/24
  • Perform a service version detection: nmap -sV 192.168.1.1
  • Enable OS detection: nmap -O 192.168.1.1

Example of Nmap Usage

Below is an example of how to use Nmap to scan a specific host:

nmap -sS -p 1-65535 192.168.1.1

This command performs a TCP SYN scan on all ports of the specified IP address (192.168.1.1).


nmap network scanning network security port scanning system administration open-source software