TCP Ping in Ubuntu

本文介绍如何在 Linux 中使用 TCP Ping 工具。

下载

1
2
3
sudo apt install tcptraceroute
sudo wget http://www.vdberg.org/~richard/tcpping -O /usr/bin/tcping
sudo chmod 755 /usr/bin/tcping

使用

1
2
3
4
5
6
7
tcping 127.0.0.1 22
seq 0: tcp response from localhost (127.0.0.1) [open] 0.031 ms
seq 1: tcp response from localhost (127.0.0.1) [open] 0.095 ms
seq 2: tcp response from localhost (127.0.0.1) [open] 0.032 ms
seq 3: tcp response from localhost (127.0.0.1) [open] 0.034 ms
seq 4: tcp response from localhost (127.0.0.1) [open] 0.111 ms
seq 5: tcp response from localhost (127.0.0.1) [open] 0.035 ms