pv command not found

In this troubleshooting guide we learn how to fix pv command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pv: command not found

or when using sudo you get the following error message

sudo: pv: command not found

Solutions to pv: command not found

How To Fix pv: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pv is provided by pv package.

pv is:

pv (Pipe Viewer) can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion.

To use it, insert it in a pipeline between two processes, with the appropriate options. Its standard input will be passed through to its standard output and progress will be shown on standard error.

To fix this problem, we can install more using the command below.

sudo apt-get -y install pv

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install pv.

sudo apt -y install pv

Or if you have aptitude installed you can use the following command.

sudo aptitude install pv

Summary

In this tutorial we learn how to fix pv command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.