What a symbolic link is and why you might want one

A symbolic link (or symlink) is a shortcut that points to a file or folder somewhere else on your computer. When you open it, your computer takes you to the real file — but the link itself takes up almost no space. Unlike copying a file, which creates a duplicate you have to keep in sync, a symlink always shows you the current version of the original.

The main reason to use one: you have files stored in one place (maybe a backup drive, or a shared folder, or deep in your Documents) but you want them to appear in another place too. You can create a symlink in your Desktop folder that points to a project buried three folders deep. Open the symlink, and you're there. Delete the symlink, and the original file stays put.

Symlinks are especially useful if you organize files by project but also want to see them by type — say, all your spreadsheets in one folder even though they live in different project folders. A symlink lets you have it both ways without duplicating anything.

Key Takeaways

  • A symbolic link is a pointer to a file or folder elsewhere on your computer, not a copy of it.
  • On Windows, use the Command Prompt with the mklink command, or right-click in File Explorer if you have Developer Mode turned on.
  • On Mac or Linux, open Terminal and use the ln -s command with the path to the original file and the name you want for the link.
  • Deleting a symlink removes only the link, not the original file it points to.
  • If the original file moves, the symlink breaks — it won't automatically follow the file to its new location.

How to make a symbolic link on Windows

The easiest route on Windows 10 or 11 is to use File Explorer if you have Developer Mode turned on. Right-click the file or folder you want to link to, select "Create link", and Windows creates a symlink in the same folder with "- Shortcut" added to the name. You can then move that symlink anywhere you want.

If that option doesn't appear, or if you want more control over where the link lands, use Command Prompt. Press the Windows key, type "cmd", and open Command Prompt as administrator. Then type this command (all on one line):

mklink "C:\Users\YourName\Desktop\MyLink" "C:\Users\YourName\Documents\MyFolder"

Replace the first path with where you want the link to appear, and the second path with where the original file or folder actually is. If you're linking to a folder rather than a single file, add /D before the first path: mklink /D "C:\Users\YourName\Desktop\MyLink" "C:\Users\YourName\Documents\MyFolder"

To find the exact path of a file, right-click it in File Explorer, select Properties, and copy the "Location" field. Paste it into your command, then add a backslash and the filename.

How to make a symbolic link on Mac or Linux

Open Terminal (on Mac, search for it in Spotlight; on Linux, it's usually in your applications menu). Use the ln -s command, which stands for "link symbolic". The format is:

ln -s /path/to/original/file /path/to/where/you/want/the/link

For example, if you have a folder called "Projects" in your home directory and you want a symlink to it on your Desktop, you would type:

ln -s ~/Documents/Projects ~/Desktop/Projects

The tilde (~) is shorthand for your home directory. If the path has spaces in it, wrap it in quotes: ln -s "~/Documents/My Projects" ~/Desktop/MyProjects

To verify the link was created, type ls -la ~/Desktop and look for an entry with an arrow pointing to the original path.

What happens when you delete or move a symlink

Deleting a symlink is safe — it removes only the link, not the original file. On Windows, just delete it like any other file. On Mac or Linux, type rm /path/to/symlink in Terminal.

If you move the original file to a different location, the symlink breaks. It will still exist, but opening it will give you an error saying the file can't be found. You'll need to delete the broken symlink and create a new one pointing to the file's new location. This is why symlinks work best when your original files stay put — they're not a solution for files you move around frequently.

When a symlink is better than a copy or a shortcut

A Windows shortcut (.lnk file) and a symlink both point to another file, but they work differently. A shortcut is Windows-specific and shows up with a small arrow icon. A symlink is recognized by the operating system itself, so programs see it as if it were the original file. If you have software that needs to read a file from a specific folder, a symlink will work; a shortcut might not.

Copying a file creates a duplicate that takes up disk space and can get out of sync with the original. If you edit the copy, the original doesn't change. A symlink always points to the current version, so there's nothing to sync. Use a copy only if you actually need two separate versions of the file.

Troubleshooting broken or slow symlinks

If a symlink points to a file on an external drive or network location, and that drive or location goes offline, the symlink will break until it comes back online. This is normal — the symlink itself is fine, but it can't reach what it's pointing to. Once the drive or network is available again, the symlink works.

On Windows, if you create a symlink to a network folder and it's slow to open, the issue is usually network speed, not the symlink itself. On Mac or Linux, if you're linking across different drives or partitions, make sure both are mounted (connected and visible) before you create the link.

To check if a symlink is broken on Mac or Linux, type ls -la /path/to/symlink and look at what it points to. If the target path is highlighted in red or shows "No such file or directory", the link is broken and needs to be recreated.

Frequently Asked Questions

Can I make a symlink to a file on a different drive or external hard drive?

Yes. On Windows, the file can be on any drive your computer can see. On Mac or Linux, the file can be on any mounted drive. If the external drive is disconnected, the symlink becomes temporarily broken but works again once the drive is plugged back in. This is useful for keeping files on a backup drive but accessing them from your Desktop.

What's the difference between a symlink and a hard link?

A hard link points directly to the file's data on disk, while a symlink points to the file's name or path. Hard links only work for files (not folders) and only on the same drive. For most people, symlinks are more useful because they work across drives and with folders. Use ln without the -s flag if you need a hard link, but symlinks are the standard choice.

If I rename the original file, does the symlink still work?

No. A symlink points to a specific file path, so if you rename the original file, the symlink breaks. You'll need to delete the broken symlink and create a new one pointing to the renamed file. This is why it's best to keep the original file's name stable if you're using symlinks to it.

Can I make a symlink inside a cloud folder like OneDrive or Google Drive?

It's possible but risky. Cloud services sometimes don't handle symlinks well and may try to sync the link as a file instead of following it to the original. If you do create a symlink in a cloud folder, test it carefully and watch for sync errors. For most people, it's safer to keep symlinks outside cloud folders.