Home Command line utilities Prettyping – Make The Output Of Ping Command Prettier And Easier To Read
Prettyping - Make The Output Of Ping Command Prettier And Easier To Read

Prettyping – Make The Output Of Ping Command Prettier And Easier To Read

By sk
209 Views

As we all know, the ping command is used to check if a target host is reachable or not. Using Ping command, we can send ICMP Echo request to our target host, and verify whether the destination host is up or down. If you use ping command often, I'd like to recommend you to try "Prettyping". Prettyping is just a wrapper for the standard ping tool and makes the output of the ping command prettier, easier to read, colorful and compact. The prettyping runs the standard ping command in the background and parses the output with colors and unicode characters. It is free and open source tool written in Bash and awk and supports most Unix-like operating systems such as GNU/Linux, FreeBSD and Mac OS X. Prettyping is not only used to make the output of ping command prettier, but also ships with other notable features as listed below.

  • Detects the lost or missing packets and marks them in the output.
  • Shows live statistics. The statistics are constantly updated after each response is received, while ping only shows after it ends.
  • Smart enough to handle "unknown messages" (like error messages) without messing up the output.
  • Avoids printing the repeated messages.
  • You can use most common ping parameters with Prettyping.
  • Can run as normal user.
  • Can be able to redirect the output to a file.
  • Requires no installation. Just download the binary, make it executable and run.
  • Fast and lightweight.
  • And, finally makes the output pretty, colorful and very intuitive.

Installing Prettyping

Like I said already, Prettyping does not requires any installation. It is portable application! Just download the Prettyping binary file using command:

$ curl -O https://raw.githubusercontent.com/denilsonsa/prettyping/master/prettyping

Move the binary file to your $PATH, for example /usr/local/bin.

$ sudo mv prettyping /usr/local/bin

And, make it executable as like below:

$ sudo chmod +x /usr/local/bin/prettyping

It's that simple.

Let us Make The Output Of Ping Command Prettier And Easier To Read

Once installed, ping any host or IP address and see the ping command output in graphical way.

$ prettyping ostechnix.com

Here is the visually displayed ping output:

prettyping in action

prettyping in action

If you run Prettyping without any arguments, it will keep running until you manually stop it by pressing Ctrl+c.

Since Prettyping is just a wrapper to the ping command, you can use most common ping parameters. For instance, you can use -c flag to ping a host only a specific number of times, for example 5:

$ prettyping -c 5 ostechnix.com

By default, prettynping displays the output in colored format. Don't like the colored output? No problem! Use --nocolor option.

$ prettyping --nocolor ostechnix.com

Similarly, you can disable multi-color support using --nomulticolor option:

$ prettyping --nomulticolor ostechnix.com

To disable unicode characters, use --nounicode option:

prettyping without unicode support

prettyping without unicode support

This can be useful if your terminal does not support UTF-8. If you can't fix the unicode (fonts) in your system, simply pass --nounicode option.

Prettyping can redirect the output to a file as well. The following command will write the output of prettyping ostechnix.com command in ostechnix.txt file.

$ prettyping ostechnix.com | tee ostechnix.txt

Prettyping has few more options which helps you to do various tasks, such as,

  • Enable/disable the latency legend. (default value is: enabled)
  • Force the output designed to a terminal. (default: auto)
  • Use the last "n" pings at the statistics line. (default: 60)
  • Override auto-detection of terminal dimensions.
  • Override the awk interpreter. (default: awk)
  • Override the ping tool. (default: ping)

For more details, view the help section:

$ prettyping --help

Suggested read:


Even though Prettyping doesn't add any extra functionality, I personally like the following feature implementations in it:

  • Live statistics - You can see all the live statistics all the time. The standard ping command will only shows the statistics after it ends.
  • Compact - You can see a longer timespan at your terminal.
  • Prettyping detects missing responses.

If you're ever looking for a way to visually display the output of the ping command, Prettyping will definitely help. Give it a try, you won't be disappointed.

Resources:

Thanks for stopping by!

Help us to help you:

Have a Good day!!

You May Also Like

3 comments

GHG September 25, 2018 - 5:56 pm

In what universe is that easier to read?

Reply
sk September 25, 2018 - 6:55 pm

So, you say it is hard? Care to elaborate? I have given few points to prove why should we try Prettyping tool.

Reply
Pavel July 10, 2019 - 7:04 pm

brilliant, thanks

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More