forkstat command not found

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

Introduction

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

forkstat: command not found

or when using sudo you get the following error message

sudo: forkstat: command not found

Solutions to forkstat: command not found

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

In Ubuntu forkstat is provided by forkstat package.

forkstat is:

Forkstat monitors process fork(), exec() and exit() activity. It is useful for monitoring system behaviour and to track down rogue processes that are spawning off processes and potentially abusing the system.

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

sudo apt-get -y install forkstat

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

You can also use apt command to install forkstat.

sudo apt -y install forkstat

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

sudo aptitude install forkstat

Summary

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