maybe is a cmdline python utility to make sure a destructive command doesn’t do anything to your filesystem that will make you repent later. maybe intercepts the program using the ptrace library and makes the program believe that everything is going smooth.
In the meantime, maybe reports what the program wants to do and you can decide whether you want to run the program or not based on the output. On principle it’s similar to apt-listchanges but works at a lower level.
However, a program like this needs extensive testing on a much larger scale to certify and the author reasonably claims the status of maybe as “alpha-quality”. In addition, only a few syscalls are intercepted at the time of writing. Use it at your own risk.
$ pip install maybe
$ maybe command [args]
On GitHub: maybe