tcping 和 tcpping 是不同的软件,tcping 主要用于 window,tcpping 主要用于 linux
安装
sudo wget -O /usr/bin/tcpping https://raw.githubusercontent.com/deajan/tcpping/master/tcpping ; sudo chmod 755 /usr/bin/tcpping
基本使用
tcpping [-d] [-c] [-r sec] [-x count] ipaddress [端口]
-d: 在每个结果之前打印时间戳。
-c: 使用分列输出以便于解析。
-r:连续探测之间的间隔(以秒为单位)(默认为 1 秒)。
-x: 重复 n 次(默认无限制)。
[port]: 目标端口(默认为 80)。
tcpping www.baidu.com 443