1

Linux常用命令-18:ping

 1 year ago
source link: https://xugaoxiang.com/2022/06/04/linux-cmds-18-ping/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ping 命令主要用来测试主机之间网络的连通性。ping 使用的是 ICMP 传输协议。

语法格式:ping [参数] [目标主机]

常用参数:

f63edd876e7d5fe9.png
# 基本使用,ip也可以换成域名或主机名
ping 192.168.1.100

# 设置ping的次数
ping -c 10 192.168.1.100

# 设置ping的次数及间隔,单位是秒
ping -c 10 -i 2 192.168.1.100

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK