I create a symbolic link for a directory, What links are the files in the directory and subdirectories? hard link or symbolic link?

2 Answers 2


If you created a symbolic link to a directory, then the files and directories beneath that directory are not modified, linked, or copied in any way.

If you access the contents of the directory via the symbolic link, you will access the real files and subdirectories beneath, albeit via a path that contains a symbolic link component.


You can't create hardlinks for directories (in a way you can, but you should not). This will only work for regular files. As for the content of a directory you've created a symbolic link to, it will stay the same, as it's just another reference to the target folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.