ForkFS
ForkFS allows you to sandbox a process's changes to your file system.
Installation
Use prebuilt binaries
Binaries for a number of platforms are available on the release page.
Build from source
$ cargo +nightly install forkfs
To install cargo, follow these instructions.
Usage
Run a command in the sandbox:
All file system changes the command makes will only exist within the sandbox and will not modify your real file system.
You can also start a bash shell wherein any command you execute has its file operations sandboxed:
Note: be consistent with your usage of
-E
. Baresudo
vssudo -E
will likely change the forkfs environment, meaning sessions that appear insudo
will not appear insudo -E
and vice versa.