How To Install Pv?
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 file
Click to copyMeasure the speed and amount of data flow between pipes (`-s` is optional):command1 | pv -s expected_amount_of_data_for_eta | command2
Click to copyFilter a file, see both progress and amount of output data:pv -cN in big_text_file | grep pattern | pv -cN out > filtered_file
Click to copyAttach to an already running process and see its file reading progress:pv -d PID
Click to copyRead an erroneous file, skip errors as `dd conv=sync,noerror` would:pv -EE path/to/faulty_media > image.img
Click to copyStop reading after reading specified amount of data, rate limit to 1K/s:pv -L 1K -S maximum_file_size_to_be_read
Click 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.