swatchdog command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
swatchdog: command not found
or when using sudo you get the following error message
sudo: swatchdog: command not found
Solutions to swatchdog: command not found
How To Fix swatchdog: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu swatchdog is provided by swatch package.
swatch is:
Swatch is designed to monitor system activity. It reads a configuration file which contains pattern(s) to look for and action(s) to perform when each pattern is found.
A typical action is echoing the matched line in a variety of colours and formats including reverse video, bold, underline, and normal, which swatch knows how to do internally. Other actions include sending mail or executing an arbitrary program on the line.
Swatch is written in Perl and uses Perl regular expressions for line matching.
To fix this problem, we can install more using the command below.
sudo apt-get -y install swatch
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install swatch.
sudo apt -y install swatch
Or if you have aptitude installed you can use the following command.
sudo aptitude install swatch
Summary
In this tutorial we learn how to fix swatchdog command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.