<分区>
我继承了无法触及的旧脚本 - 不要问。它引用安装在位置 /SuperSoft/SomeSoft/
软件的新版本,自买断后重新制作,安装到位
/usr/local/SomeSoft
我一直在尝试在根级别创建以下软链接(soft link):
ln -s SuperSoft/SomeSoft//usr/local/SomeSoft/
我不想在根级别创建一个 SuperSoft
目录。这能做到吗?
<分区>
我继承了无法触及的旧脚本 - 不要问。它引用安装在位置 /SuperSoft/SomeSoft/
软件的新版本,自买断后重新制作,安装到位
/usr/local/SomeSoft
我一直在尝试在根级别创建以下软链接(soft link):
ln -s SuperSoft/SomeSoft//usr/local/SomeSoft/
我不想在根级别创建一个 SuperSoft
目录。这能做到吗?
最佳答案
在文件系统的两个部分中拥有相同的文件也可以通过挂载来实现。
来自 linux 上的“man mount”:
Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is mount --bind olddir newdir or shortoption mount -B olddir newdir or fstab entry is: /olddir /newdir none bind After this call the same contents is accessible in two places.
关于linux - 我如何在 Linux 中创建多级软链接(soft link)或者可以这样做吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16719245/