Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What is the difference between a 'symbolic link' versus a 'junction' when use 'Link Shell Extension' ? Please explain.

share|improve this question

3 Answers 3

up vote 2 down vote accepted

A symbolic link is a reference to a file object in another part of a file system. Think of it like an alias. A junction is like a symbolic link for directories. You can basically associate two paths to reach the same directory.

I would not recommend using them unless you have a really good reason.

share|improve this answer
    
wait so windows has 2 things for what we have 1 for in unix? –  xenoterracide Apr 21 '10 at 5:10
    
@xenoterracide Symlink is to Junction in Windows as Symlink is to Hardlink in Unix –  7wp Aug 31 '12 at 5:47
2  
@7wp - Wrong, Windows has hardlinks also. Symlinks, hardlinks, and junction points, which are a different beast altogether. *nix does not have anything quite like them at all to my knowledge. They're very similar to symlinks with a few differences (such as being resolved by the server when accessed remotely, while symlinks are resolved by the client) The way permissions work on them is also slightly different. See this question and also this question. –  Unsigned Nov 15 '12 at 16:37
    
@Unsigned +1 for insight! –  7wp Nov 16 '12 at 23:04

I know this has been answered a while ago, but I was wondering the same thing and found this answer.

The accepted answer is actually not quite correct.

There are symbolic links to files and directories. There are hard links to files.

"Hard links" to directories are called junctions. The thing is, they are not quite hard links. Microsoft calls them Soft links.

"A junction (also called a soft link) differs from a hard link in that the storage objects it references are separate directories, and a junction can link directories located on different local volumes on the same computer. Otherwise, junctions operate identically to hard links. Junctions are implemented through reparse points."

Source: http://msdn.microsoft.com/en-us/library/aa365006(v=vs.85).aspx

share|improve this answer

A symbolic link can be relative to a base directory. A junction point always references the destination absolutely. Even if you create the junction point without specifying an absolute path linkd source destination the created junction point is absolute and will be broken, if you move the two directories into another directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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