Any good tool to make folder act as /dev/null?

Actually, I am concerned that Cryptomator writes logs in multiple files with different names in ~/.var/...cryptomator.../logs

I see that this is not super sensitive, but I wanna not have (even encrypted!) logs of my encryption software.

So few questions to you:

  • How rational this approach? Or I am just overparanoid?
  • Actually, any good approach to not store anything (even file headers) in folder?

For now I made rm -rf /logs and ln -s /dev/null /logs but it seems to misbehave. Someone say that i can mount that folder to RAM via fstab, but I think it is a “nuke against fly” method

Linking a path meant to be a folder to /dev/null (a file) is much more of a heavy-handed action than mounting a tmpfs onto the path. I’m not sure why you would describe it as a “nuke against fly”, this is literally why tmpfs exists.

I think the most common solution is to have a FUSE mount which does this, for example:

If it’s fine for the files to exist until a reboot, however, then you’d use tmpfs with mktemp like @lyricism suggests, and that is the cleaner solution since it’s already built in.