ping in terminal ubuntu code example Example 1: ubuntu ping ping host-name/IP Example 2: ping in terminal ping google.com