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

A symbolic link (or symlink) is a small file that acts like a pointer. Instead of storing the actual file, it stores the path to where that file lives. When you open a symbolic link, your computer follows the pointer and opens the real file. It looks and behaves like the original, but it takes up almost no space.

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," anyone looking for you at the old address gets redirected. The note is not your house — it is just directions to your house. A symbolic link works the same way.

Symbolic links are different from copying a file. When you copy something, you create a second version that takes up disk space and stays separate. When you make a symbolic link, you create one tiny pointer that always leads back to the original. If you edit the file through the link, the original changes. If you delete the link, the original file stays put.

Key Takeaways

  • A symbolic link is a pointer file that directs to another file or folder, using almost no disk space.
  • Opening or editing a file through its symbolic link changes the original file, not a copy.
  • Symbolic links let you organize files into multiple locations without duplicating them.
  • Deleting a symbolic link does not delete the original file it points to.
  • Broken symbolic links occur when the original file moves or gets deleted, leaving the pointer with nowhere to go.

Why you would create a symbolic link instead of moving or copying

Symbolic links solve a specific problem: you want a file to appear in two places at once, but you do not want two copies taking up space. This happens often when organizing files by category.

Say you have a folder called "2024 Tax Documents" with receipts, forms, and statements. You also have a folder called "Medical Expenses" where you track health costs. One receipt is both a tax document and a medical expense. You could copy it to both folders, but then you have two versions to keep in sync. If you update one, the other becomes outdated. A symbolic link in the "Medical Expenses" folder points back to the original in "2024 Tax Documents," so there is only one file to maintain.

Symbolic links also help when a program expects a file in a specific location, but you want to store it elsewhere. Some older software looks for files in a fixed folder. Instead of moving your file there (and losing track of where it is), you create a symbolic link in that folder pointing to your actual file. The program finds what it needs, and your file stays organized where you want it.

How to create a symbolic link on Windows, Mac, and Linux

The method depends on your operating system. All three can create symbolic links, but the steps differ.

On Windows 10 and 11: Right-click the file or folder you want to link to. Select "Create a link" (Windows 11) or use the Command Prompt. Open Command Prompt as Administrator, then type mklink "C:\path\to\link" "C:\path\to\original", replacing the paths with your own. The first path is where the link will appear; the second is the original file. Press Enter. The link appears as a small file with an arrow icon.

On Mac: Open Terminal (in Applications > Utilities). Type ln -s /path/to/original /path/to/link, replacing the paths with your own. The first path is the original; the second is where the link will appear. Press Enter. The link shows up with a small arrow in the corner of its icon.

On Linux: Open a terminal and type the same command as Mac: ln -s /path/to/original /path/to/link. The syntax is identical across Linux distributions.

If you are not comfortable with the command line, both Mac and Windows have graphical tools. On Mac, you can drag a file while holding Command + Option to create a link in the same folder. On Windows, third-party tools like Link Shell Extension add a right-click option for creating links without typing commands.

What happens when the original file moves or gets deleted

A symbolic link stores the path to the original file, not a copy of the file itself. If the original file moves to a different folder, the link breaks. The link still exists, but it points to a location that no longer has anything there. Your computer will show an error if you try to open it.

If you delete the original file, the link becomes useless in the same way. The pointer goes nowhere. You can delete the broken link without affecting anything else — there is no original file left to harm.

This is why symbolic links work best when the original file stays in one place. If you organize files and then create links to them, keep the originals in their organized location. Do not move them later. If you do need to move the original, move the original file first, then delete the old link and create a new one pointing to the new location.

Symbolic links versus shortcuts and aliases

Windows, Mac, and Linux each have their own shortcut or alias feature, and they are not the same as symbolic links. Understanding the difference helps you pick the right tool.

Windows shortcuts (.lnk files) are similar to symbolic links but store more information, like the program to use when opening the file. They take up slightly more space and are easier to create through the graphical interface. Symbolic links are more "transparent" — programs treat them more like the original file.

Mac aliases work much like Windows shortcuts. They store extra metadata and are created by dragging a file while holding Command + Option + Shift. Aliases are easier to create graphically but take up more space than symbolic links.

Hard links (available on all three systems) are different again. A hard link points directly to the file's data on disk, not to a path. If the original file moves, the hard link still works. However, hard links only work for files, not folders, and they are harder to manage. Symbolic links are more flexible for most organizing tasks.

When symbolic links cause problems

Symbolic links can confuse backup software. Some backup programs follow links and back up the original file multiple times if multiple links point to it. Others skip links entirely, leaving you with broken pointers in your backup. Check your backup software's settings to see how it handles symbolic links.

Syncing services like OneDrive, Google Drive, and Dropbox also handle links unpredictably. Some follow the link and sync the original file. Others sync only the link itself, which breaks if you move the original. If you use cloud storage, test how it handles links before relying on them for important files.

Deleting a folder that contains symbolic links is usually safe — the links disappear, but the original files stay put. However, if you delete a folder that a symbolic link points to, the link breaks. Be careful when cleaning up old folders; check whether any active symbolic links point into them first.

Frequently Asked Questions

Can I create a symbolic link to a file on an external drive or network?

Yes, but the link only works when that drive or network location is connected. If you unplug an external drive, the link breaks until you plug it back in. Network links depend on the network being available. For files you access regularly, symbolic links work best when pointing to locations that are always accessible.

What is the difference between a symbolic link and a hard link?

A symbolic link stores a path to the original file. A hard link points directly to the file's data on disk. If the original file moves, a hard link still works, but a symbolic link breaks. Hard links only work for files, not folders. For organizing files into multiple categories, symbolic links are more practical.

If I send someone a symbolic link, will it work on their computer?

No. A symbolic link points to a specific path on your computer. On someone else's computer, that path probably does not exist. Send the original file instead, or explain to the other person how to create their own symbolic link to a file on their system.

Can I create a symbolic link to a symbolic link?

Yes, you can create a chain of links, but it is confusing to manage. If the original file moves, all the links in the chain break. For organizing files, stick to one level of links pointing directly to the original files.

How do I know if a file is a symbolic link or the original?

On Windows, symbolic links show a small arrow icon in the corner. On Mac and Linux, they also display an arrow. You can also right-click and check the file properties — it will say "symbolic link" or show the path it points to. In the command line, the ls -l command (Mac and Linux) or dir (Windows) shows which files are links.