简体   繁体   English

创建符号目录

[英]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.

相关问题 创建指向多个目录中心的符号链接 - create a symbolic link to multiple directory centos 如何创建指向目标目录中最新目录的符号链接? - How to create a symbolic link that points to the latest directory in a target directory? 创建一个名为 long_file 的符号链接,指向当前目录中最大的文件 - Create a symbolic link named long_file pointing to the largest file in the current directory 如何在LINUX的另一个目录中有选择地创建指向特定文件的符号链接? - How do I selectively create symbolic links to specific files in another directory in LINUX? 如何为符号链接创建for循环 - how to create for loop for symbolic link 当前目录中的符号链接级别过多? - Too many levels of symbolic links on current directory? 有没有办法检查是否有指向目录的符号链接? - Is there a way to check if there are symbolic links pointing to a directory? 安装rpm并将文件放入符号链接目录 - Install rpm and put file into symbolic link directory 如何创建到另一个符号链接的符号链接或硬链接? - How to create a symbolic link or hard link to another symbolic link? 复制目录,并带有指向复制文件的符号链接(在目录树内部) - Copy directory with symbolic links pointing to the copied files (inside directory tree)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM