A symbolic link is a shortcut that points to a file or folder somewhere else on your computer

When you create a symbolic link, you are not copying a file or folder. Instead, you are creating a small pointer — a reference that tells your operating system where the real file lives. When you open the symbolic link, your computer follows that pointer and opens the actual file. If you delete the symbolic link, the original file stays untouched. If you delete the original file, the symbolic link breaks and points to nothing.

Think of it like a forwarding address. If you move and leave a note at your old house saying "I live at 42 Oak Street now," that note is like a symbolic link. The note is not your house — it just tells people where to find it. If someone throws away the note, your house is still there. But if you move away and someone tries to use that note, it no longer works.

Key Takeaways

  • A symbolic link is a pointer to another file or folder, not a copy of it, so changes to the original file show up when you open the link.
  • Deleting a symbolic link does not delete the original file, but deleting the original file breaks the link.
  • Symbolic links let you organize files in multiple places without duplicating them or using extra disk space.
  • Windows, Mac, and Linux all support symbolic links, though the method to create one differs slightly on each system.

How symbolic links differ from shortcuts and copies

A shortcut (on Windows) or alias (on Mac) looks similar to a symbolic link but works differently. A shortcut is a file that your operating system knows is not the real thing — it has a small arrow icon and different properties. A symbolic link, by contrast, behaves almost exactly like the original file. Many programs cannot tell the difference.

A copy is a separate file that takes up disk space. If the original file is 500 MB, the copy is also 500 MB. A symbolic link is tiny — usually just a few bytes — because it only stores the path to the original file. This matters when you have large files or folders you want to access from multiple locations without wasting storage.

Symbolic links also stay synchronized with the original. If you edit a file through its symbolic link, the changes appear in the original. If you edit the original, those changes appear when you open the link. With a copy, the two files drift apart — edits to one do not touch the other.

Why you might create a symbolic link

The most common reason is to organize files without moving them. Suppose you have a folder called "Work Projects" on your external drive, but you want it to appear inside your Documents folder too. Instead of copying the entire folder (which wastes space and creates sync problems), you create a symbolic link inside Documents that points to the external drive. Now you can navigate to it from either location.

Developers and system administrators use symbolic links to manage software installations. A program might be installed in one location, but you want it accessible from another path. A symbolic link solves this without duplicating the program files. Some programs also use symbolic links to point to configuration files or libraries stored elsewhere on the system.

Symbolic links also help when you need to move a folder but keep old paths working. If you move a folder and create a symbolic link at the old location pointing to the new one, any program or script that looks for files at the old path will still find them.

How to create a symbolic link on Windows

On Windows, the easiest method is to use the command line. Open Command Prompt as an administrator (right-click Command Prompt and select "Run as administrator"). Then type the command in this format:

mklink /D "C:\Users\YourName\Documents\LinkName" "D:\OriginalFolder"

Replace "LinkName" with what you want to call the link and "OriginalFolder" with the full path to the folder you want to point to. Use /D for folders and /H for files. If the path contains spaces, wrap it in quotation marks as shown above.

Some third-party tools like Link Shell Extension add a right-click menu option to create symbolic links without typing commands, but the command line method works on any Windows computer without extra software.

How to create a symbolic link on Mac and Linux

On Mac and Linux, open Terminal and use the ln command. The format is:

ln -s /path/to/original /path/to/link

The -s flag tells the system to create a symbolic link (as opposed to a hard link, which is a different type of pointer). For example, to create a link called "ProjectFolder" in your home directory that points to a folder on an external drive, you would type:

ln -s /Volumes/ExternalDrive/MyProjects ~/ProjectFolder

On Mac, you can also hold Command and Option while dragging a file or folder to create an alias, which behaves similarly to a symbolic link for most everyday purposes.

What happens when the original file moves or is deleted

If you move the original file to a different location without updating the symbolic link, the link becomes broken. It still exists, but it points to a path that no longer has anything at the end of it. Most operating systems will show a broken link with a different icon or a warning message when you try to open it.

To fix a broken link, you can delete it and create a new one pointing to the file's new location. Some tools let you edit the link's target path directly, but the simplest approach is usually to delete and recreate.

If you delete the original file, the link breaks immediately. The link itself remains on your disk, but it is now useless. You can delete the broken link whenever you want — it takes up almost no space, so leaving it there does not hurt anything, but removing it keeps your file system clean.

Symbolic links versus hard links

A hard link is a different kind of pointer that works at a lower level of the file system. Both a hard link and the original file point to the same data on disk. If you delete the original file but a hard link still exists, the data stays on your disk because the hard link keeps it alive. Hard links only work for files, not folders, and they do not work across different drives or partitions.

Symbolic links work across drives and can point to folders, making them more flexible for everyday use. Hard links are useful in specialized situations where you need multiple references to the same file data, but for most people, symbolic links are the right choice.

Frequently Asked Questions

Can I create a symbolic link to a file on a different computer or network drive?

Yes, but the path must be accessible from your computer. If you have a network drive mapped or mounted, you can create a symbolic link to it. However, if the network is unavailable, the link will be broken until the network comes back online.

Will programs work correctly if I open them through a symbolic link?

Most programs work fine with symbolic links, but some older software may not recognize them. If a program has trouble, try opening the original file directly instead. Modern applications on Windows, Mac, and Linux handle symbolic links transparently.

Does creating a symbolic link use up disk space?

No, a symbolic link uses only a tiny amount of space — typically less than 1 KB — because it only stores the path to the original file, not a copy of the file itself.

What is the difference between a symbolic link and a folder shortcut?

A folder shortcut (on Windows) or alias (on Mac) is a file that your operating system treats as a special object. A symbolic link behaves like the actual folder to most programs. Symbolic links are more transparent, but both serve the same basic purpose of pointing to another location.

Can I delete a symbolic link without affecting the original file?

Yes, deleting a symbolic link never affects the original file or folder. The link is just a pointer, so removing it leaves the original untouched.