Does cygwin know NTFS junction points?

Does cygwin (1.7.x) support Windows NTFS junction points (created by mklink in Win7 / 2008 or sysinternals' junction.exe)?

How do they differ from the symbolic link created by "ln -s"?

+2
source share
2 answers

Yes, Cygwin 1.7 understands NTFS junction points, as well as NTFS symbolic links (as presented in Vista). They appear as symbolic links to Cygwin programs, so, for example, deleting such a link will delete the link, and not the file specified too.

The reason Cygwin does not use NTFS symbolic links when creating Cygwin symbolic links is because only created administrators are allowed to create them (unless you change the registry setting) and that they do not have all the necessary POSIX semantics.

+5
source

Cygwin symbolic links are nothing more than a file that talks about a link. Here, what you will find when you look at the contents of one of the Windows cmd prompts:

C:\>type c:\cygwin\bin\emacs !<symlink> ■/ etc / alternatives / emacs C:\> 

AFAIK, NTFS Windows connection points are something completely different. I would expect that since they run at the file system level, cygwin does not see anything else in them from any other file / directory.

Having said that, I will also say that I did not play with NTFS junction points, therefore YMMV.

+1
source

Source: https://habr.com/ru/post/1398243/


All Articles