Linux common commands-18: ping

The ping command is mainly used to test the network connectivity between hosts. ping uses the ICMP transport protocol.

Syntax format: ping [parameter] [target host]

Common parameters:

Example

 # 基本使用,ip也可以换成域名或主机名ping 192.168.1.100 # 设置ping的次数ping -c 10 192.168.1.100 # 设置ping的次数及间隔,单位是秒ping -c 10 -i 2 192.168.1.100

This article is reprinted from https://xugaoxiang.com/2022/06/04/linux-cmds-18-ping/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment