What is the difference between NTFS Junction Points and Symbolic Links?

前端 未结 6 1247
名媛妹妹
名媛妹妹 2020-12-02 04:39

At a high level, the only obvious difference between NTFS Junction Points and Symbolic Links is that Junctions are only able to be directories, while SymLinks are allowed to

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 05:10

    Symbolic links have more functionality, while junctions almost seem to be a legacy feature because of their limitations, but the security implications of these limitations are specifically why a junction might be preferred over a symbolic link. Remote targeting makes symbolic links more functional, but also raises their security profile, while junctions are safer because they are constrained to local paths. So, if you want a local link and can live with an absolute path, you're probably better off with a junction; otherwise, consider a symbolic link for its added abilities.

    **The statement of difference in speed/complexity comes from an unverified statement in the Wikipedia entry on NTFS reparse points (a good read).*


    Other NTFS Link Comparisons

    Here are some other comparisons on the topic, but these can be misleading when considering junctions because they don't list the benefits I list above.

    Taken from here (a good introductory read)

    From SS64 page on MKLink


    Comments about Terminology

    Junctions are Reparse Points (may be described as symbolic links)

    NTFS Junctions and NTFS Symbolic links are really doing the same thing in the same way (reparse points), aside from the aforementioned differences in how they're processed. In fact, technically, a Junction is a "symbolic link" in the more general sense of the word, and sometimes documentation might call a Junction a symbolic link, as is the case here. In such cases, "symbolic link" does not mean NTFS Symbolic Link which is different than a junction (see below).

    NTFS

    Even though the OP specifies this, it's worth pointing out that "symbolic link" is a very general term that is not specific to NTFS. So, to be specific, this comparison is about NTFS Junctions vs. NTFS Symbolic Links.

提交回复
热议问题