An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
May 26, 2022 02:11 am GMT
Original Link: https://dev.to/zodman/awesome-cli-command-what-you-didnt-know-1-c52
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...
I use for ? well I have used for adding how long take to execute a command
Are you use time?
time mylongcommand.... long putputreal 0m0.005suser 0m0.001ssys 0m0.005s
Drop time and start using ets -s
Original Link: https://dev.to/zodman/awesome-cli-command-what-you-didnt-know-1-c52
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To