Windows look-alike ping in Linux

A little script pinw.sh that I like to call “Winstyle++ ping”, because the output it’s similar to the ping command from Windows.

1. Download the script

wget https://raw.githubusercontent.com/oueta/linux.sh/master/pinw.sh

2. Change permissions

chmod +x pinw.sh

3. Execute

./pinw.sh google.com
[21:18:56] (total=1; sent=1; lost=0) 64 bytes from fra16s24-in-f3.1e100.net (216.58.207.35): icmp_seq=1 ttl=58 time=41.0 ms
[21:18:57] (total=2; sent=2; lost=0) 64 bytes from fra16s24-in-f3.1e100.net (216.58.207.35): icmp_seq=1 ttl=58 time=41.0 ms
[21:18:58] (total=3; sent=3; lost=0) 64 bytes from fra16s24-in-f3.1e100.net (216.58.207.35): icmp_seq=1 ttl=58 time=41.0 ms
[21:18:59] (total=4; sent=4; lost=0) 64 bytes from fra16s24-in-f3.1e100.net (216.58.207.35): icmp_seq=1 ttl=58 time=41.0 ms
[21:19:00] (total=5; sent=5; lost=0) 64 bytes from fra16s24-in-f3.1e100.net (216.58.207.35): icmp_seq=1 ttl=58 time=41.0 ms
./pinw.sh 10.0.0.1
[21:22:20] (total=1; sent=0; lost=1) Request timed out.
[21:22:21] (total=2; sent=0; lost=2) Request timed out.
[21:22:22] (total=3; sent=0; lost=3) Request timed out.
[21:22:23] (total=4; sent=0; lost=4) Request timed out.
[21:22:24] (total=5; sent=0; lost=5) Request timed out.

Leave a Reply

Your email address will not be published.