pv

How To Install Pv?

How To Install Pv?

pv

Monitor the progress of data through a pipe.

Maintainer: Antoine Beaupru00e9



Section: utils

Install pv

  • Debian apt-get install pv Click to copy
  • Ubuntu apt-get install pv Click to copy
  • Alpine OS apk add pv Click to copy
  • Arch Linux pacman -S pv Click to copy
  • Kali Linux apt-get install pv Click to copy
  • Fedora dnf install pv Click to copy
  • Raspbian apt-get install pv Click to copy
  • macOS brew install pv Click to copy

Monitor the progress of data through a pipe.

How to use pv?

Below are few example commands for pv that you can use in the terminal.

Print the contents of the file and display a progress bar:
pv fileClick to copy
Measure the speed and amount of data flow between pipes (`-s` is optional):
command1 | pv -s expected_amount_of_data_for_eta | command2Click to copy
Filter a file, see both progress and amount of output data:
pv -cN in big_text_file | grep pattern | pv -cN out > filtered_fileClick to copy
Attach to an already running process and see its file reading progress:
pv -d PIDClick to copy
Read an erroneous file, skip errors as `dd conv=sync,noerror` would:
pv -EE path/to/faulty_media > image.imgClick to copy
Stop reading after reading specified amount of data, rate limit to 1K/s:
pv -L 1K -S maximum_file_size_to_be_readClick to copy
Install the latest version of pv in Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the pv just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of pv from the respository and install it in your computer/server.