1

I've changed way too many things in my motion.conf and I would like to revert it to original state.

Is there any command to achieve that?

When I remove config file and during installation or even removal by apt-get I get following error:

chmod: cannot access '/etc/motion/motion.conf': No such file or directory

1

Assuming you installed it using apt-get, you can remove it and its config files with the following command:

sudo apt-get purge motion

and then reinstall with:

sudo apt-get install motion

You may want to investigate etckeeper, to avoid having to uninstall and reinstall in future. It uses version control to track changes to your /etc directory, allowing you to test and roll back config changes. You can read more about it on our blog.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.