seg-fault command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
seg-fault: command not found
or when using sudo you get the following error message
sudo: seg-fault: command not found
Solutions to seg-fault: command not found
How To Fix seg-fault: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu seg-fault is provided by chaos-marmosets package.
chaos-marmosets is:
This project contains small programs that behave badly. They can be used for chaos engineering to test the system behavior and the infrastructure setup for those cases.
divide-by-zero tries to divide a number by zero. It will immediately exit with signal 4 (SIGILL). This program is useful to test the process core dump configuration. In case of using a bug reporting system like apport, this program allows testing reporting the crash and retracing it.
leak-memory: This program will eat your memory like Obelix eats cake until it will eventually trigger the out of memory (OOM) killer. This program is useful to test configured cgroups memory limitations and the OOM killer behavior.
seg-fault: This program tries write to address zero and will trigger a segmentation fault (signal 11). It is useful to test the process core dump configuration. In case of using a bug reporting system like apport, this program allows testing reporting the crash and retracing it.
To fix this problem, we can install more using the command below.
sudo apt-get -y install chaos-marmosets
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install chaos-marmosets.
sudo apt -y install chaos-marmosets
Or if you have aptitude installed you can use the following command.
sudo aptitude install chaos-marmosets
Summary
In this tutorial we learn how to fix seg-fault command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.