Table of Contents

Quick Guide to Symbolic Links (symlinks) on Windows or Linux

Do you want to access folders and files from different locations without maintaining duplicate copies? You can use Symbolic Links to link anything in Windows 10, 8, 7, Vista, XP, and GNU/Linux.

Symbolic links, also known as symlinks, are basically fancy shortcuts. You can create symlinks to individual files or folders, and then these will appear like they are stored in the folder with the symbolic link even though the symbolic link only points to their real location. There are two types of symbolic links:

hard links – Makes it appear as though the file or folder actually exists at the location of the symbolic link, and your applications won’t know any different.

soft links – Essentially the same as a standard shortcut. When you open a soft link, you will be redirected to the folder where the files are stored.

The mklink command on Windows 10

Where could you use Symbolic Links?

You can sync any folder with Dropbox by placing a hardlink on the appropriate location.

You can store your documents on a second hard drive, but make them show up on your Desktop so they’ll be quicker to access

And more! (Use your imagination)

Newer versions of windows use symbolic links to keep compatibillity with older directory structure. For example, Documents and Settings Symlink points to the Users folder

Caution: Make sure to never create a symbolic link inside of a symbolic link. For instance, don’t create a symbolic link to a file that’s contained in a symbolic linked folder. This can create a loop, which can cause problems you don’t want to deal with.

In Windows 10, 8, 7, or Vista

In Windows, use the mklink command to create symbolic links. Open an administrator Command Prompt.

For example, if we wanted to create a symlink on Desktop that points to my archives located on the D drive, enter the following in command prompt: