我在
linux(Red Hat)系统上有三个目录.说/usr/local / one,/usr/local / two和/usr/local / three.我希望有一种机制,其行为类似于将一,二和三的内容组合到/ opt / oneTwoThree中而无需物理移动其文件内容的目录.
即…
$find /usr/local/ /usr/local/one /usr/local/one/aaa /usr/local/one/bbb /usr/local/three /usr/local/three/fff /usr/local/two /usr/local/two/ccc /usr/local/two/ddd /usr/local/two/eee $find /opt/oneTwoThree /usr/local/oneTwoThree /usr/local/oneTwoThree/aaa /usr/local/oneTwoThree/bbb /usr/local/oneTwoThree/fff /usr/local/oneTwoThree/ccc /usr/local/oneTwoThree/ddd /usr/local/oneTwoThree/eee
解决方法
您可以使用似乎是主动开发的
UnionFS,或者在目录分离硬盘驱动器的情况下,MHDDFS,但我看到对最后一个的引用较少.
编辑:有一个wikipedia article在UnionFS上有更多可口的信息