motion command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
motion: command not found
or when using sudo you get the following error message
sudo: motion: command not found
Solutions to motion: command not found
How To Fix motion: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu motion is provided by motion package.
motion is:
Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed. Or in other words, it can detect motion.
Motion is a command line based tool. It has no graphical user interface. Everything is setup either via the command line or via configuration files.
The output from motion can be: - jpg/ppm image files - mpeg/mp4/swf/flv/mov/ogg video sequences
Also, motion has its own minimalistic web server. Thus, you can access the webcam output from motion via a browser.
To fix this problem, we can install more using the command below.
sudo apt-get -y install motion
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install motion.
sudo apt -y install motion
Or if you have aptitude installed you can use the following command.
sudo aptitude install motion
Summary
In this tutorial we learn how to fix motion command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.