How to use the pv command?

pv is used to provide the ability of monitoring progress of a given application which lacks the mentioned functionality. It can be used by placing a pipe operator (|) between two processes.

Syntax of pv command:

pv fileName
pv OPTIONS fileName
pv fileName > outputFileName
pv OPTIONS | command > outputFileName
command1 | pv | command2

Standard Input of the pv command is passed to Standard Output and then the result is printed to Standard Error.

pv command in Linux with Examples

pv is a terminal-based (command-line based) tool in Linux that allows us for the monitoring of data being sent through pipe. The full form of pv command is Pipe Viewer. pv helps the user by giving him a visual display of the following,

  1. Time Elapsed
  2. Completed Progress (percentage bar)
  3. Current data transfer speed (also referred to as throughput rate)
  4. Data Transferred
  5. ETA (Estimated Time) (Remaining time)

Similar Reads

Installing pv command

1. Debian based distributions:...

How to use the pv command?

pv is used to provide the ability of monitoring progress of a given application which lacks the mentioned functionality. It can be used by placing a pipe operator (|) between two processes....

Options for pv command

1. General Options...

Examples

1. Creating a progress bar with the copy command...