List hosts on local network

# List hostname and IP address of hosts on local network
sudo nmap -sL 192.168.1.1/24 | awk '/Nmap scan report for [a-zA-z]/ {print $5 " " $NF}'

SamatsWiki: CheatSheet/nmap (last edited 2018-07-14 10:59:49 by SamatJain)