Windows Vista增加了创build文件和目录的符号链接的function。 如何创build符号链接,以及支持它的当前Windows消费者和服务器版本是什么?
我正在尝试使用符号链接。 我做了一些阅读,并find以下命令: Creation -> ln -s {/path/to/file-name} {link-name} Update -> ln -sfn {/path/to/file-name} {link-name} Deletion -> rm {link-name} 创build和删除工作正常。 但更新不起作用。 执行此命令后,符号链接将变为无效。 我在这里和那里读到,它是不可能更新/重写符号链接。 所以网上有矛盾的信息。 谁是对的? 如果一个符号链接可以更新/覆盖,我怎么能做到这一点? 更新 这是我的目录结构: ~/scripts/test/ ~/scripts/test/remote_loc/ ~/scripts/test/remote_loc/site1/ ~/scripts/test/remote_loc/site1/stuff1.txt ~/scripts/test/remote_loc/site2/ ~/scripts/test/remote_loc/site2/stuff2.txt ~/scripts/test/remote_loc/site2/ ~/scripts/test/remote_loc/site3/stuff3.txt 从~/scripts/test/ ,当我执行: ln -s /remote_loc/site1 test_link 一个test_link被创build,并且我可以ls -l ,但它似乎被破坏(与我在上面提到的在我的问题中相反)。 我怎样才能执行一个多目录级别的链接?