x ping | x-cmd mod | Enhanced modules for ping

2 min read Original article ↗

Enhanced modules for ping

Examples

Ping bing.com by default, equivalent to x ping bing.com

Use the default mode to output data for 'ping bing.com'

Show the ping results as a heatmap

sh

x ping --heatmap 8.8.8.8

Show the ping results as a bar graph

Process the ping results and display them as a heatmap

sh

ping bing.com | x ping vis --heatmap

Usage

sh

x ping [OPTIONS] [FLAGS] [SUB_COMMAND]

Options

Name, ShorthandDefaultDescription
-wTimeout period for waiting for a response, in seconds
-cThe number of requests sent

Flags

Name, ShorthandDescription
--verboseVerbose mode output (default mode)
--heatmap, -mOutput in heatmap mode
--bar, -bOutput in bar chart mode
--raw, -rOutput in raw data mode
--csvOutput in CSV format
--tsvOutput in TSV format

Sub Commands

NameDescription
x ping --runRun the ping command and display the results graphically
x ping visVisualize the results of the inputted ping command
x ping --Run the ping command directly

x ping --run

Run the ping command and display the results graphically

  • Usage:

x ping vis

Visualize the results of the inputted ping command

  • Usage:

sh

x ping vis [OPTIONS] [FLAGS]
  • Options:
Name, ShorthandDefaultDescription
--inputThe type of data input
  • Flags:
Name, ShorthandDescription
--verboseVerbose mode output (default mode)
--heatmap, -mOutput in heatmap mode
--bar, -bOutput in bar chart mode
--raw, -rOutput in raw data mode
--csvOutput in CSV format
--tsvOutput in TSV format

x ping --

Run the ping command directly

  • Usage:

TIP

In interactive terminal ( zsh, bash ... ), Can use Tab to get completion information

Run CMD SUBCOMMAND --help for more information on a command