怎么使用ping 命令 ping www.baidu.com ,运行Linux里的ping命令后怎么退出? ctrl键+c键
需要准备的材料分别是:电脑、linux连接工具。
1、首先连接上linux主机,进入等待输入指令的linux命令行状态。
![](https://w.sf024.com/picurl?url=https%3A%2F%2Fiknow-pic.cdn.bcebos.com%2Fa8014c086e061d9509710dc675f40ad162d9ca1c%3Fx-bce-process%3Dimage%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1)
2、以ping百度3次为例,输入:ping www.baidu.com -c3,按回车。
![](https://w.sf024.com/picurl?url=https%3A%2F%2Fiknow-pic.cdn.bcebos.com%2F11385343fbf2b211d603a1b0c48065380cd78e1a%3Fx-bce-process%3Dimage%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1)
3、此时打印出3次ping的结果并自动结束ping。
![](https://w.sf024.com/picurl?url=https%3A%2F%2Fiknow-pic.cdn.bcebos.com%2F472309f7905298226ea5183dd9ca7bcb0b46d4bd%3Fx-bce-process%3Dimage%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1)
4、ping的过程键盘同时按ctrl键+c键,可以退出ping。
![](https://w.sf024.com/picurl?url=https%3A%2F%2Fiknow-pic.cdn.bcebos.com%2Fa6efce1b9d16fdfadf24e210ba8f8c5495ee7b87%3Fx-bce-process%3Dimage%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1)
https://w.sf024.com/info/1509939417965352900.html