How can one,in Linux, create something like a symbolic link (hereby referred to as A) so that any program reading from a will read from an original file (B), but writing to A will instead write to a different file (C), in a way that writing to A will leave B unaffected?
Asked
Active
Viewed 174 times
1 Answers
0
There is no easy way to do this.
It may be possible with an overlayfs, but setting this up is complicated and for a single file even more so.
It is also possible to write a kernel module that intercepts the necessary system calls to implement such a feature. As far as I know, no-one has done this yet.
You should reconsider your use-case.
Ljm Dullaart
- 2,788