31.3 C
Guru Unix /Linux and GNU supporter

Linux Nmap network scanning tool installation and use

This paper introduces the installation and use of the Nmap network scanning tool under centos.

NMAP is a popular network scanning and sniffing tools is also a powerful tool for port scanning type safety assessment, is widely used in the security scan, NMAP is a useful online tool, also is often used in the production and development, mainly for port open view of detection and LAN information collection, etc., different Linux distributions generally also with NMAP package management tool, can also choose to go to the website to download the source code package compiled installation.

Install nmap

In case, you are unable to use nmap command, use below command to install it

 centos:yum install nmap
 ubuntu:apt-get install nmap  
centos install nmap
centos install nmap
- Advertisement -

Check that the installation is successful

 nmap -v

Nmap usage method

  • Scan IP which common TCP port and UDP port are open
nmap or nmap -sS -sU -p 1-65535
Scan IP
  • Scan multiple IP addresses or subnet

In the scan result, if the state column is open, it means the state is open; if it is filtered, it may be filtered by a firewall; if it is closed, it means the port is closed.

  • Scans which hosts are alive in the subnet
nmap -n -sP
Scan subnet alive
  • Nmap route trace
namp –traceroute  
  • Scans IP or subnet hosts for port
nmap -p 12598
nmap -p 12598
Scans port
  • An option that goes one step further and gives you more information about the services running on a specific host is ‘-A’.
nmap -A
all information
  • Nmap scans the operating system type using the -O option
nmap -O 12598
operating system type
  • For an in-depth understanding of the use of the nmap command, use it to examine the man pages
man nmap


nmap is one of those utilities that have so many options and capabilities, it can actually be overwhelming. As is the case with those types of utilities, you will end up using only a fraction of its capabilities to help get a specific job done. If you want to use it at its full potential, you’re in for a lot of trial and error and some hands-on experience with real networks.

So, you can read our post abour networks in this link.

Please share this post and join our Telegram Channel

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


Please enter your comment!
Please enter your name here

Latest article