ps-watcher command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ps-watcher: command not found
or when using sudo you get the following error message
sudo: ps-watcher: command not found
Solutions to ps-watcher: command not found
How To Fix ps-watcher: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ps-watcher is provided by ps-watcher package.
ps-watcher is:
This program runs the ps command periodically and triggers commands on matches. The match patterns are Perl regular expressions which can refer to the process information via variables.
For example it can be used to ensure that a daemon is running, or is not running too many times. It can also be used to determine when a process has consumed too many resources, perhaps due to a memory leak.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ps-watcher
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ps-watcher.
sudo apt -y install ps-watcher
Or if you have aptitude installed you can use the following command.
sudo aptitude install ps-watcher
Summary
In this tutorial we learn how to fix ps-watcher command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.