ubuntu install nmap code example Example 1: install nmap ubuntu sudo apt-get install nmap Example 2: install nmap ubuntu sudo apt install nmap