ptee command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ptee: command not found
or when using sudo you get the following error message
sudo: ptee: command not found
Solutions to ptee: command not found
How To Fix ptee: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ptee is provided by pipexec package.
pipexec is:
pipexec creates an arbitrary network (directed graph) of processes and pipes in between - even cycles are possible. It overcomes the short comings of shells that are typically only able to create non cyclic trees.
pipexec also monitors all its child processes and is able to restart the whole network of processes and pipes if one crashes. Therefore pipexec can be used in SYSV-init or systemd configuration to run a network of processes.
The package also contains two tools ‘ptee’ and ‘peet’ which are the piped version of the ’tee’ and ’eet’ (reverse tee) commands.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pipexec
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pipexec.
sudo apt -y install pipexec
Or if you have aptitude installed you can use the following command.
sudo aptitude install pipexec
Summary
In this tutorial we learn how to fix ptee command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.