ubuntu install ping code example Example 1: linux install ping apt-get update apt-get install iputils-ping Example 2: ubuntu ping ping host-name/IP