Adam Deacon

Authored Comments

I love the ts command from moreutils. It will add a timestamp to any output. Want to see when you server came back up?

ping -c 4 8.8.8.8 | ts
Aug 07 16:13:18 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
Aug 07 16:13:18 64 bytes from 8.8.8.8: icmp_seq=1 ttl=120 time=41.6 ms
Aug 07 16:13:19 64 bytes from 8.8.8.8: icmp_seq=2 ttl=120 time=42.2 ms
Aug 07 16:13:20 64 bytes from 8.8.8.8: icmp_seq=3 ttl=120 time=31.8 ms
Aug 07 16:13:21 64 bytes from 8.8.8.8: icmp_seq=4 ttl=120 time=37.1 ms
Aug 07 16:13:21
Aug 07 16:13:21 --- 8.8.8.8 ping statistics ---
Aug 07 16:13:21 4 packets transmitted, 4 received, 0% packet loss, time 3011ms
Aug 07 16:13:21 rtt min/avg/max/mdev = 31.802/38.237/42.279/4.208 ms