command1 Verified current stable Not installed? Data Processing

Command1 / Measure Data Flow Between Pipes

Measure Data Flow Between Pipes

Measure data flow between commands during pipeline execution.

$
Terminal
<command1> | pv -s <expected_amount_of_data_for_eta> | <command2>

When To Use

When optimizing resource usage in complex command sequences.

Pro Tip

Use the -s flag to predict completion times based on expected data size.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
<command1> | pv -s <expected_amount_of_data_for_eta> | <command2>

Anatomy of Output

Understanding the result

Data flowing: 45.5MiB/s Throughput Rate

Indicates how fast data is passing through.

ETA: 00:01:30 Estimated Time of Arrival (ETA)

Forecasted completion time.

Data processed: 500MiB Total Data

Indicates total amount of data processed.

Power User Variants

Optimized versions

command1 | pv -s 500M | command2

Measure data flow with an expected size of 500MB.

Troubleshooting

Common pitfalls

Invalid option: '-s'

Solution: Ensure the flag is supported by the version of pv being used.

Command not found: command1 or command2

Solution: Validate that both commands are correctly installed and accessible.

Expected data size not specified

Solution: Provide a valid data size for ETA calculation.

Command Breakdown

What each part is doing

<command1>
Base Command
The executable that performs this operation. Here it runs Command1 before the shell applies any redirect operators.
<command1>
command1
The value supplied for command1.
-s
s| size
The value supplied for s| size.
<expected_amount_of_data_for_eta>
expected amount of data for eta
The value supplied for expected amount of data for eta.
<command2>
command2
The value supplied for command2.
-s
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative data processing tools for the same job.