[英]Create symbolic directory
How do you make a symbolic link from a directory to a directory? 如何建立从目录到目录的符号链接?
I've scoured google for a straight forward answer but all examples are either for file links or kind of hand wave around how you make a directory symbolically link to another one. 我一直在寻找Google的直接答案,但所有示例都是针对文件链接的,或者是关于如何使目录以符号方式链接到另一个目录的手动通知。
Want one of those great straight up stackoverflow answers to this that will hopefully drowned out all the rest of the cruft out there. 希望对此有一个很好的直接stackoverflow答案,希望能淹没那里所有剩余的东西。
You do it just the same as linking to a file, ln -s
. 您可以执行与链接到文件ln -s
。
$ mkdir testdir
$ touch testdir/file
$ ln -s testdir otherdir
$ ls otherdir
file
$
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.