Awesome cli command that you didn't know #1
Andres 🐍 in 🇨🇦
Posted on May 26, 2022
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
...
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
Drop time and start using ets -s
💖 💪 🙅 🚩
Andres 🐍 in 🇨🇦
Posted on May 26, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.