pv Command Examples

Monitor the progress of data through a pipe. More information: https://manned.org/pv.

pv {{path/to/file}}

command1 | pv {{[-s|--size]}} {{expected_amount_of_data_for_eta}} | command2

pv {{[-cN|--cursor --name]}} in {{big_text_file}} | grep {{pattern}} | pv {{[-cN|--cursor --name]}} out > {{filtered_file}}

pv {{[-d|--watchfd]}} {{PID}}

pv {{[-EE|--skip-errors --skip-errors]}} {{path/to/faulty_media}} > image.img

pv {{[-L|--rate-limit]}} 1K {{[-S|--stop-at-size]}} {{maximum_file_size_to_be_read}}