Make directory junction (symlink) equivalent to mklink /j
I am developing a web application with php in windows environment and I am using symlink to avoid redundancy. I made the symlinks with mklink /j command using exec(). Today I decided to test the app in linux and I used 'ln -s' command. But the app malfunctioned and can't find files correctly. So what is the equivalent of directory junctions in linux?
31 Answer
NTFS has symbolic links which work exactly as Unix symbolic links, but mklink /j creates a junction point, not a symbolic link.
An NTFS junction is much more similar to a Unix mountpoint, and it is actually represented as a mountpoint internally. Use mount --bind in Linux to emulate the behavior of an NTFS junction.