Footprinting ⇒ This is the infrastructure part of information-gathering.
Ping sweep is an automatic method of checking whether the IP is active or not
The -a option forces the tool to show only alive hosts
the -g option tells the tool that we want to perform a ping sweep instead of a standard ping
<aside> 💡 To suppress those messages, you can redirect the process standard error to 2>/dev/null

</aside>
Nmap Ping Sweep :
nmap -sn 10.0.200.0/24

<aside> 💡 You can save your host list and invoke it with Nmap.
</aside>
nmap -sn -iL '/root/Desktop/flag.txt'

nmap -sn 192.168.119.128/24 -oN ping-sweep-results.txt
By default, Nmap only shows you the output of its commands in the terminal window. You can change this default behavior and save the output to a file using one of the following command line options: