본문 바로가기

리눅스

[리눅스] ping 명령어

반응형

ping 명령어

 

ping google.com | xargs -n1 -i bash -c 'echo `date +%F\ %T`" {}"' | ccze

yum install -y ccze
ping google.com | xargs -n1 -i bash -c 'echo `date +%F\ %T`" {}"' | ccze -A
$ ping google.com | xargs -n1 -i bash -c 'echo `date +%F\ %T`" {}"' | ccze -A
2020-10-13 17:38:02 PING google.com (172.217.24.142) 56(84) bytes of data.
2020-10-13 17:38:02 64 bytes from nrt20s01-in-f14.1e100.net (172.217.24.142): icmp_seq=1 ttl=104 time=31.9 ms
2020-10-13 17:38:03 64 bytes from nrt20s01-in-f14.1e100.net (172.217.24.142): icmp_seq=2 ttl=104 time=31.9 ms
2020-10-13 17:38:04 64 bytes from nrt20s01-in-f14.1e100.net (172.217.24.142): icmp_seq=3 ttl=104 time=32.0 ms

 

728x90
반응형