Install forkstat by entering the following commands in the terminal:
sudo apt update sudo apt install forkstat
Description:
process fork/exec/exit monitoring tool
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.
Homepage: http://kernel.ubuntu.com/~cking/forkstat
Version: 0.02.02-1
Section: universe/admin