DEV Community

Andres 🐍 in πŸ‡¨πŸ‡¦
Andres 🐍 in πŸ‡¨πŸ‡¦

Posted on

Awesome cli command that you didn't know #1

Let's fire some what I like:

ets https://github.com/zmwangx/ets

ets is a command output timestamper β€” it prefixes each line of a command's output with a timestamp.

I love this command, let's check this:

Run a command with ets:

$ ets ping localhost
[2020-06-16 17:13:03] PING localhost (127.0.0.1): 56 data bytes
[2020-06-16 17:13:03] 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.036 ms
[2020-06-16 17:13:04] 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.077 ms
[2020-06-16 17:13:05] 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.037 ms
...
Enter fullscreen mode Exit fullscreen mode

I use for ? well I have used for adding how long take to execute a command

Are you use time?

time mylongcommand
.... long putput
real    0m0.005s
user    0m0.001s
sys     0m0.005s
Enter fullscreen mode Exit fullscreen mode

Drop time and start using ets -s

Top comments (0)